incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r893335 - in /incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm: ./ spi/delegates/
Date Tue, 22 Dec 2009 22:57:30 GMT
Author: spoole
Date: Tue Dec 22 22:57:29 2009
New Revision: 893335

URL: http://svn.apache.org/viewvc?rev=893335&view=rev
Log:
added missing licence files to new Java code

Modified:
    incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java
    incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java
    incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java
    incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java
    incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java
    incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java

Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java?rev=893335&r1=893334&r2=893335&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java
Tue Dec 22 22:57:29 2009
@@ -11,16 +11,27 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  ******************************************************************************/
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
 package javax.tools.diagnostics.vm;
 
-import java.io.File;
-import java.io.IOException;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Map;
 import java.util.TreeMap;
 
-import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities;
+import javax.tools.diagnostics.vm.spi.delegates.JavaDumpDelegate;
 import javax.tools.diagnostics.vm.spi.delegates.HProfSignalTriggeredDumpDelegate;
 import javax.tools.diagnostics.vm.spi.delegates.IBMSPIBasedHeapDumpDelegate;
 import javax.tools.diagnostics.vm.spi.delegates.IBMSPIBasedSystemDumpDelegate;
@@ -111,7 +122,7 @@
 			DumpFactory d=new DumpFactory();
 			d.loadStandardInitiators();
 			if(d.availableInitiators.isEmpty()) {
-				d.addInitiator(new DummyDelegate());
+				d.addInitiator(new JavaDumpDelegate());
 			}
 			
 			defaultDumpFactory=d;
@@ -252,60 +263,6 @@
 
 	}
 
-	private static class DummyDelegate implements DumpInitiatorDelegate {
-
-		/*
-		 * (non-Javadoc)
-		 * 
-		 * @see javax.tools.diagnostics.vm.DumpInitiatorDelegate#dump()
-		 */
-
-		private boolean createDump() throws IOException {
-
-			File dumpFile=new File("kato.dump.placebo");
-			return dumpFile.createNewFile();
-		
-			
-		}
-
-		public boolean available() {
-			return true;
-		}
-
-		@Override
-		public DumpHandle createDumpHandle() {
-			return new DumpHandle() {
-				
-				@Override
-				public boolean dump() throws IOException {
-					return createDump();
-				}
-			};
-		}
-
-		@Override
-		public DumpHandle createDumpHandle(DumpDescriptor descriptor) {
-			return new DumpHandle() {
-				
-				@Override
-				public boolean dump() throws IOException {
-					return createDump();
-				}
-			};
-		}
-
-		@Override
-		public DumpInitiatorCapabilities getCapabilities() {
-			return new DumpInitiatorCapabilities() {
-			};
-		}
-
-		@Override
-		public String getDumpType() {
-			return "kato.dump.placebo";
-		}
-	}
-
 	
 	
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java?rev=893335&r1=893334&r2=893335&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java
Tue Dec 22 22:57:29 2009
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
 package javax.tools.diagnostics.vm.spi.delegates;
 
 import java.io.IOException;

Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java?rev=893335&r1=893334&r2=893335&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java
Tue Dec 22 22:57:29 2009
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
 package javax.tools.diagnostics.vm.spi.delegates;
 
 import java.io.IOException;

Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java?rev=893335&r1=893334&r2=893335&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java
Tue Dec 22 22:57:29 2009
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
 package javax.tools.diagnostics.vm.spi.delegates;
 
 import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities;

Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java?rev=893335&r1=893334&r2=893335&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java
Tue Dec 22 22:57:29 2009
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
 package javax.tools.diagnostics.vm.spi.delegates;
 
 import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities;

Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java?rev=893335&r1=893334&r2=893335&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java
Tue Dec 22 22:57:29 2009
@@ -1,3 +1,16 @@
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
 package javax.tools.diagnostics.vm.spi.delegates;
 
 import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities;



Mime
View raw message