You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2009/12/22 12:15:53 UTC

svn commit: r893153 - /incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java

Author: spoole
Date: Tue Dec 22 12:15:52 2009
New Revision: 893153

URL: http://svn.apache.org/viewvc?rev=893153&view=rev
Log:
added new methods to DumpFactory design

Modified:
    incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.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=893153&r1=893152&r2=893153&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 12:15:52 2009
@@ -71,6 +71,25 @@
 	public DumpFactory() {
 		
 	}
+	
+	/**
+	 * Fastpath method allowing the user to trigger a dump using the default
+	 * dump method
+	 * @throws IOException 
+	 */
+	public void dump() throws IOException {
+		getDefaultInitiatorDelegate().createDumpHandle().dump();
+	}
+	
+	/**
+	 * Fastpath method to create a dump from a dump type that can support the data 
+	 * requested.   
+	 * 
+	 * @return a valid dump handle 
+	 */
+	public void dump(DumpDescriptor desc)throws IOException{
+		 // FIXME ! have to work on how this all gets resolved 
+	}
 	/**
 	 * Get the default Dump factory.  
 	 * Returns a Dump factory populated with all available dump initiators
@@ -144,6 +163,16 @@
 	public DumpHandle createDumpHandle() {
 		return defaultInitiatorDelegate.createDumpHandle();
 	}
+	
+	/**
+	 * Returns a Dump handle for a dump type that can support the data 
+	 * requested.   
+	 * 
+	 * @return a valid dump handle 
+	 */
+	public DumpHandle createDumpHandle(DumpDescriptor desc) {
+		return null; // FIXME ! have to work on how this all gets resolved 
+	}
 
 	/**
 	 * Returns an initiator that can produce a dump of the required format.