incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r806175 - in /incubator/kato/trunk/org.apache.kato: kato.api/src/main/java/javax/tools/diagnostics/image/ kato.hprof.api/src/main/java/org/apache/kato/hprof/java/ kato.jdi/src/main/java/org/apache/kato/tools/jdi/ kato.tck.testsuite/src/main...
Date Thu, 20 Aug 2009 13:53:58 GMT
Author: spoole
Date: Thu Aug 20 13:53:57 2009
New Revision: 806175

URL: http://svn.apache.org/viewvc?rev=806175&view=rev
Log:
rename katoexception to diagnostic exception and fixed up all references

Removed:
    incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/KatoException.java
Modified:
    incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java
    incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java
    incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/MemoryAccessException.java
    incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
    incubator/kato/trunk/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java
    incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/HeapdumpCommand.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaClassVisitor.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaObjectVisitor.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaRuntimeVisitor.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/KatoSearch.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoPropertyCommand.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoThreadCommand.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatThreadPoolsCommand.java
    incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatVersionCommand.java

Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java
Thu Aug 20 13:53:57 2009
@@ -17,7 +17,7 @@
  * Used to indicate that corruption has been detected in the image.
  * @see CorruptData
  */
-public class CorruptDataException extends KatoException {
+public class CorruptDataException extends DiagnosticException {
 
 	private static final long serialVersionUID = 1824138624307972457L;
 

Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java
Thu Aug 20 13:53:57 2009
@@ -18,7 +18,7 @@
  * is not available on this system, or in this image.
  *
  */
-public class DataUnavailable extends KatoException {
+public class DataUnavailable extends DiagnosticException {
 
 	private static final long serialVersionUID = 2104628444818149680L;
 

Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/MemoryAccessException.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/MemoryAccessException.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/MemoryAccessException.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/MemoryAccessException.java
Thu Aug 20 13:53:57 2009
@@ -16,7 +16,7 @@
 /**
  * Indicates that an attempt was made to access memory which is not included within the image
  */
-public class MemoryAccessException extends KatoException {
+public class MemoryAccessException extends DiagnosticException {
     
 	private static final long serialVersionUID = 8883829684484518525L;
 

Modified: incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaStackFrameImpl.java
Thu Aug 20 13:53:57 2009
@@ -6,7 +6,7 @@
 import javax.tools.diagnostics.image.CorruptDataException;
 import javax.tools.diagnostics.image.DataUnavailable;
 import javax.tools.diagnostics.image.ImagePointer;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaLocation;
 import javax.tools.diagnostics.runtime.java.JavaMethod;
@@ -207,7 +207,7 @@
 		public String toString() {
 			try {
 				return getDeclaringClass().getName()+"."+getName()+getSignature();
-			} catch (KatoException e) {				
+			} catch (DiagnosticException e) {				
 				return "Exception on JavaMethodImpl.toString()+"+ e.getMessage();
 			}  
 		}

Modified: incubator/kato/trunk/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.jdi/src/main/java/org/apache/kato/tools/jdi/KatoReader.java
Thu Aug 20 13:53:57 2009
@@ -29,7 +29,7 @@
 import javax.tools.diagnostics.image.Image;
 import javax.tools.diagnostics.image.ImageAddressSpace;
 import javax.tools.diagnostics.image.ImageProcess;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.image.MemoryAccessException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaClassLoader;
@@ -734,7 +734,7 @@
 					gotValue = true;
 				}
 
-			} catch (KatoException e) {
+			} catch (DiagnosticException e) {
 				e.printStackTrace();
 				return null;
 			}

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java
Thu Aug 20 13:53:57 2009
@@ -18,7 +18,7 @@
 
 import javax.tools.diagnostics.image.CorruptData;
 import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.image.DataUnavailable;
 import javax.tools.diagnostics.image.ImageProcess;
 import javax.tools.diagnostics.image.ImageThread;
@@ -42,7 +42,7 @@
 	{
 		try {
 			assertNotNull(_proc.getCommandLine());
-		} catch (KatoException e) {
+		} catch (DiagnosticException e) {
 			//acceptable
 			assertTrue(true);
 		}

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/HeapdumpCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/HeapdumpCommand.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/HeapdumpCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/HeapdumpCommand.java
Thu Aug 20 13:53:57 2009
@@ -34,7 +34,7 @@
 import javax.tools.diagnostics.image.Image;
 import javax.tools.diagnostics.image.ImageAddressSpace;
 import javax.tools.diagnostics.image.ImageProcess;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.image.MemoryAccessException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaClassLoader;
@@ -399,7 +399,7 @@
 								instanceSize,
 								classObject != null ? (int)classObject.getPersistentHashcode() : 0,
 								getClassReferences(thisJavaClass) );
-				} catch(KatoException ex) {
+				} catch(DiagnosticException ex) {
 					//Handle CorruptDataException and DataUnavailableException the same way
 					_numberOfErrors++;
 					reportError(null,ex);
@@ -527,7 +527,7 @@
 				reportError("Couldn't get Java class loader for: " + thisJavaClass.getName() + "(" +
thisJavaClass.getID() + ")",null);
 			}
 			
-		} catch(KatoException ex) {
+		} catch(DiagnosticException ex) {
 			reportError(null,ex);
 			_numberOfErrors++;
 		}
@@ -687,7 +687,7 @@
 			} else {
 				addRegularObjectReferences(thisObject, references,thisClass);
 			}
-		} catch(KatoException ex) {
+		} catch(DiagnosticException ex) {
 			_numberOfErrors++;
 			reportError(null,ex);
 		}

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaClassVisitor.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaClassVisitor.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaClassVisitor.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaClassVisitor.java
Thu Aug 20 13:53:57 2009
@@ -13,7 +13,7 @@
  ******************************************************************************/
 package org.apache.kato.katoview.commands.helpers;
 
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 
 /**
@@ -26,7 +26,7 @@
 	 * 
 	 * @param clazz
 	 * @return false if visitor is to exit.
-	 * @throws KatoException
+	 * @throws DiagnosticException
 	 */
-	public boolean visit(JavaClass clazz) throws KatoException;
+	public boolean visit(JavaClass clazz) throws DiagnosticException;
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaObjectVisitor.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaObjectVisitor.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaObjectVisitor.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaObjectVisitor.java
Thu Aug 20 13:53:57 2009
@@ -13,7 +13,7 @@
  ******************************************************************************/
 package org.apache.kato.katoview.commands.helpers;
 
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaObject;
 
 /**
@@ -28,7 +28,7 @@
 	 * 
 	 * @param object JavaObject being visited
 	 * @return false if visiting is to stop
-	 * @throws KatoException
+	 * @throws DiagnosticException
 	 */
-	public boolean visit(JavaObject object) throws KatoException;
+	public boolean visit(JavaObject object) throws DiagnosticException;
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaRuntimeVisitor.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaRuntimeVisitor.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaRuntimeVisitor.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/JavaRuntimeVisitor.java
Thu Aug 20 13:53:57 2009
@@ -13,7 +13,7 @@
  ******************************************************************************/
 package org.apache.kato.katoview.commands.helpers;
 
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaRuntime;
 
 /**
@@ -21,5 +21,5 @@
  *
  */
 public interface JavaRuntimeVisitor {
-	public void visit(JavaRuntime runtime) throws KatoException;
+	public void visit(JavaRuntime runtime) throws DiagnosticException;
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/KatoSearch.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/KatoSearch.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/KatoSearch.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/helpers/KatoSearch.java
Thu Aug 20 13:53:57 2009
@@ -23,7 +23,7 @@
 import javax.tools.diagnostics.image.Image;
 import javax.tools.diagnostics.image.ImageAddressSpace;
 import javax.tools.diagnostics.image.ImageProcess;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaClassLoader;
 import javax.tools.diagnostics.runtime.java.JavaField;
@@ -48,7 +48,7 @@
 	 * @param image
 	 * @param visitor
 	 */
-	public static void visitRuntimes(Image image, JavaRuntimeVisitor visitor) throws KatoException
{
+	public static void visitRuntimes(Image image, JavaRuntimeVisitor visitor) throws DiagnosticException
{
 		List spaces = image.getAddressSpaces();
 		
 		for(Object nextSpace : spaces) {			
@@ -133,7 +133,7 @@
 	 * 
 	 * @param runtime
 	 * @param visitor
-	 * @throws KatoException 
+	 * @throws DiagnosticException 
 	 */
 	public static void visitClasses(JavaRuntime runtime, JavaClassVisitor visitor)  {
 		List classLoaders = runtime.getJavaClassLoaders();
@@ -160,7 +160,7 @@
 					if (rc == false) {
 						break CLASSLOADERS;
 					}
-				} catch (KatoException e) {
+				} catch (DiagnosticException e) {
 					
 				}
 			}
@@ -236,7 +236,7 @@
 			this.clazz = clazz;
 		}
 		
-		public boolean visit(JavaObject object) throws KatoException {
+		public boolean visit(JavaObject object) throws DiagnosticException {
 			if (clazz.equals(object.getJavaClass())) {
 				list.add(object);
 			}
@@ -280,7 +280,7 @@
 			this.list = list;
 		}
 		
-		public boolean visit(JavaClass clazz) throws KatoException {
+		public boolean visit(JavaClass clazz) throws DiagnosticException {
 			JavaClass subClass = clazz;
 			while((clazz != null) 
 					&& !(clazzName.equals(clazz.getName()))) {
@@ -333,7 +333,7 @@
 					if (rc == false) {
 						return;
 					}
-				} catch (KatoException e) {
+				} catch (DiagnosticException e) {
 					e.printStackTrace();
 				}
 			 }

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoPropertyCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoPropertyCommand.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoPropertyCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoPropertyCommand.java
Thu Aug 20 13:53:57 2009
@@ -21,7 +21,7 @@
 
 import javax.tools.diagnostics.image.CorruptDataException;
 import javax.tools.diagnostics.image.Image;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.image.MemoryAccessException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaField;
@@ -46,7 +46,7 @@
 	public void doCommand(Stack args, Image loadedImage, HashMap properties){
 		try {
 			KatoSearch.visitRuntimes(loadedImage, new PropertyGetter(args));
-		} catch (KatoException e) {
+		} catch (DiagnosticException e) {
 			e.printStackTrace();
 		}
 	}
@@ -60,7 +60,7 @@
 			this.args = args;
 		}
 
-		public void visit(JavaRuntime runtime) throws KatoException {
+		public void visit(JavaRuntime runtime) throws DiagnosticException {
 			int thisRuntime = runtimeNum++;
 			
 			JavaClass systemClass = KatoSearch.findClass(runtime, "java/lang/System");

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoThreadCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoThreadCommand.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoThreadCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoThreadCommand.java
Thu Aug 20 13:53:57 2009
@@ -31,7 +31,7 @@
 import javax.tools.diagnostics.image.ImageSection;
 import javax.tools.diagnostics.image.ImageStackFrame;
 import javax.tools.diagnostics.image.ImageThread;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.ManagedRuntime;
 import javax.tools.diagnostics.runtime.java.JavaLocation;
 import javax.tools.diagnostics.runtime.java.JavaMonitor;
@@ -358,7 +358,7 @@
 					try {
 						ImageThread it = jt.getImageThread();  
 						currID = it.getID();
-					} catch (KatoException e) {
+					} catch (DiagnosticException e) {
 						currID = null;
 					}
 					

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatJSPCommand.java
Thu Aug 20 13:53:57 2009
@@ -19,7 +19,7 @@
 
 import javax.tools.diagnostics.image.CorruptData;
 import javax.tools.diagnostics.image.Image;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaLocation;
 import javax.tools.diagnostics.runtime.java.JavaObject;
@@ -54,7 +54,7 @@
 	public void doCommand(Stack args, Image loadedImage, HashMap properties) {
 		try {
 			KatoSearch.visitRuntimes(loadedImage, new PrintJSP());
-		} catch (KatoException e) {
+		} catch (DiagnosticException e) {
 			e.printStackTrace();
 		}
 	}
@@ -67,7 +67,7 @@
 		boolean found = false;
 		JavaRuntime runtime;
 		
-		public void visit(JavaRuntime runtime) throws KatoException {
+		public void visit(JavaRuntime runtime) throws DiagnosticException {
 			found = false;
 			this.runtime = runtime;
 			List<JavaClass> jsps = KatoSearch.findClasses(runtime, JSP_CLASS);

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatThreadPoolsCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatThreadPoolsCommand.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatThreadPoolsCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatThreadPoolsCommand.java
Thu Aug 20 13:53:57 2009
@@ -18,7 +18,7 @@
 import java.util.Stack;
 
 import javax.tools.diagnostics.image.Image;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaField;
 import javax.tools.diagnostics.runtime.java.JavaObject;
@@ -54,7 +54,7 @@
 	public void doCommand(Stack args, Image loadedImage, HashMap properties) {
 		try {
 			KatoSearch.visitRuntimes(loadedImage, new PrintVersion());
-		} catch (KatoException e) {
+		} catch (DiagnosticException e) {
 			e.printStackTrace();
 		}
 	}
@@ -67,7 +67,7 @@
 		boolean found = false;
 		JavaRuntime runtime;
 		
-		public void visit(JavaRuntime runtime) throws KatoException {
+		public void visit(JavaRuntime runtime) throws DiagnosticException {
 			found = false;
 			this.runtime = runtime;
 			KatoSearch.visitClasses(runtime, this);
@@ -77,7 +77,7 @@
 			}
 		}
 
-		public boolean visit(JavaClass clazz) throws KatoException {
+		public boolean visit(JavaClass clazz) throws DiagnosticException {
 			if (clazz.getName().equals(THREAD_POOL_CLASS)) {
 				found = true;
 				JavaField nameField = KatoSearch.getField(clazz, POOL_NAME);
@@ -94,7 +94,7 @@
 									+ countField.getInt(obj) +
 									", busy: " + busyField.getInt(obj));
 						
-						}catch (KatoException e) {
+						}catch (DiagnosticException e) {
 							e.printStackTrace();
 						}
 					}

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatVersionCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatVersionCommand.java?rev=806175&r1=806174&r2=806175&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatVersionCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/tomcat/TomcatVersionCommand.java
Thu Aug 20 13:53:57 2009
@@ -17,7 +17,7 @@
 import java.util.Stack;
 
 import javax.tools.diagnostics.image.Image;
-import javax.tools.diagnostics.image.KatoException;
+import javax.tools.diagnostics.image.DiagnosticException;
 import javax.tools.diagnostics.runtime.java.JavaClass;
 import javax.tools.diagnostics.runtime.java.JavaField;
 import javax.tools.diagnostics.runtime.java.JavaRuntime;
@@ -52,7 +52,7 @@
 	public void doCommand(Stack args, Image loadedImage, HashMap properties) {
 		try {
 			KatoSearch.visitRuntimes(loadedImage, new PrintVersion());
-		} catch (KatoException e) {
+		} catch (DiagnosticException e) {
 			e.printStackTrace();
 		}
 	}
@@ -64,7 +64,7 @@
 	private class PrintVersion implements JavaRuntimeVisitor, JavaClassVisitor {
 		boolean found = false;
 		
-		public void visit(JavaRuntime runtime) throws KatoException {
+		public void visit(JavaRuntime runtime) throws DiagnosticException {
 			found = false;
 			KatoSearch.visitClasses(runtime, this);
 			
@@ -73,7 +73,7 @@
 			}
 		}
 
-		public boolean visit(JavaClass clazz) throws KatoException {
+		public boolean visit(JavaClass clazz) throws DiagnosticException {
 			if (clazz.getName().equals(SERVER_INFO_CLASS)) {
 				JavaField serverNumberField = KatoSearch.getField(clazz, SERVER_NUMBER);
 				JavaField serverBuiltField = KatoSearch.getField(clazz, SERVER_BUILT);



Mime
View raw message