|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.tools.diagnostics.vm.DumpFactory
public class DumpFactory
Standard mechanism that allows a java application to trigger a dump for the executing JVM.
Constructor Summary | |
---|---|
DumpFactory()
Instantiate a dump factory that can be used to trigger dumps |
Method Summary | |
---|---|
DumpHandle |
createDumpHandle()
Returns a Dump handle for the default dump type used by this JVM |
DumpHandle |
createDumpHandle(DumpDescriptor desc)
Returns a Dump handle for a dump type that can support the data requested. |
void |
dump()
Fastpath method allowing the user to trigger a dump using the default dump method |
void |
dump(DumpDescriptor desc)
Fastpath method to create a dump from a dump type that can support the data requested. |
void |
dump(java.lang.String id)
Fastpath method allowing the user to trigger a standard dump for the given data format |
java.util.Collection<DumpInitiatorDelegate> |
getAvailableInitiators()
Returns the set of available Initiators. |
static DumpFactory |
getDefault()
Get the default Dump factory. |
DumpInitiatorDelegate |
getDefaultInitiatorDelegate()
Get the default dump initiator |
DumpInitiatorDelegate |
getInitiator(java.lang.String format)
Returns an initiator that can produce a dump of the required format. |
DumpInitiatorDelegate |
instantiateOverrideDelegate()
Instantiates a Dump delegate class to handle dump requests based on the presence of the override system property initiatorPropertyName
It will be used in preference to any other auto discovered delegates. |
void |
loadStandardInitiators()
Looks for commonly available dump initiators and add them to this instances configuration |
void |
setDefaultInitiatorDelegate(DumpInitiatorDelegate defaultInitiatorDelegate)
sets the default dump initiator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DumpFactory()
Method Detail |
---|
public DumpInitiatorDelegate getDefaultInitiatorDelegate()
public void setDefaultInitiatorDelegate(DumpInitiatorDelegate defaultInitiatorDelegate)
defaultInitiatorDelegate
- public void dump() throws java.io.IOException
java.io.IOException
public void dump(java.lang.String id) throws java.io.IOException
java.io.IOException
public void dump(DumpDescriptor desc) throws java.io.IOException
java.io.IOException
public static DumpFactory getDefault()
public void loadStandardInitiators()
public DumpHandle createDumpHandle()
public DumpHandle createDumpHandle(DumpDescriptor desc)
public DumpInitiatorDelegate getInitiator(java.lang.String format)
format
-
public java.util.Collection<DumpInitiatorDelegate> getAvailableInitiators()
public DumpInitiatorDelegate instantiateOverrideDelegate()
initiatorPropertyName
It will be used in preference to any other auto discovered delegates.
If the override does not exist or cannot be instantiated then null is returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |