|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.tools.attach.VirtualMachine
sun.tools.attach.HotSpotVirtualMachine
public abstract class HotSpotVirtualMachine
The HotSpot implementation of com.sun.tools.attach.VirtualMachine.
| Method Summary | |
|---|---|
InputStream |
dumpHeap(Object... args)
|
Properties |
getAgentProperties()
Returns the current agent properties in the target virtual machine. |
Properties |
getSystemProperties()
Send "properties" command to target VM. |
InputStream |
heapHisto(Object... args)
|
void |
loadAgent(String agent,
String options)
Load JPLIS agent which will load the agent JAR file and invoke the agentmain method. |
void |
loadAgentLibrary(String agentLibrary,
String options)
Load agent library - library name will be expanded in target VM. |
void |
loadAgentPath(String agentLibrary,
String options)
Load agent - absolute path of library provided to target VM. |
void |
localDataDump()
|
InputStream |
printFlag(String name)
|
InputStream |
remoteDataDump(Object... args)
|
InputStream |
setFlag(String name,
String value)
|
| Methods inherited from class com.sun.tools.attach.VirtualMachine |
|---|
attach, attach, detach, equals, hashCode, id, list, loadAgent, loadAgentLibrary, loadAgentPath, provider, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void loadAgentLibrary(String agentLibrary,
String options)
throws AgentLoadException,
AgentInitializationException,
IOException
loadAgentLibrary in class VirtualMachineagentLibrary - The name of the agent library.options - The options to provide to the Agent_OnAttach
function (can be null).
AgentLoadException - If the agent library does not exist, or cannot be loaded for
another reason.
AgentInitializationException - If the Agent_OnAttach function returns an error
IOException - If an I/O error occursAgentInitializationException.returnValue()
public void loadAgentPath(String agentLibrary,
String options)
throws AgentLoadException,
AgentInitializationException,
IOException
loadAgentPath in class VirtualMachineagentLibrary - The full path of the agent library.options - The options to provide to the Agent_OnAttach
function (can be null).
AgentLoadException - If the agent library does not exist, or cannot be loaded for
another reason.
AgentInitializationException - If the Agent_OnAttach function returns an error
IOException - If an I/O error occursAgentInitializationException.returnValue()
public void loadAgent(String agent,
String options)
throws AgentLoadException,
AgentInitializationException,
IOException
loadAgent in class VirtualMachineagent - Path to the JAR file containing the agent.options - The options to provide to the agent's agentmain
method (can be null).
AgentLoadException - If the agent does not exist, or cannot be started in the manner
specified in the java.lang.instrument specification.
AgentInitializationException - If the agentmain throws an exception
IOException - If an I/O error occurs
public Properties getSystemProperties()
throws IOException
getSystemProperties in class VirtualMachineIOException - If an I/O error occursSystem.getProperties(),
VirtualMachine.loadAgentLibrary(java.lang.String, java.lang.String),
VirtualMachine.loadAgent(java.lang.String, java.lang.String)
public Properties getAgentProperties()
throws IOException
VirtualMachine
getAgentProperties in class VirtualMachineIOException - If an I/O error occurs
public void localDataDump()
throws IOException
IOException
public InputStream remoteDataDump(Object... args)
throws IOException
IOException
public InputStream dumpHeap(Object... args)
throws IOException
IOException
public InputStream heapHisto(Object... args)
throws IOException
IOException
public InputStream setFlag(String name,
String value)
throws IOException
IOException
public InputStream printFlag(String name)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||