|
||||||||||
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 | |
---|---|
java.io.InputStream |
dumpHeap(java.lang.Object... args)
|
java.util.Properties |
getAgentProperties()
Returns the current agent properties in the target virtual machine. |
java.util.Properties |
getSystemProperties()
Send "properties" command to target VM. |
java.io.InputStream |
heapHisto(java.lang.Object... args)
|
void |
loadAgent(java.lang.String agent,
java.lang.String options)
Load JPLIS agent which will load the agent JAR file and invoke the agentmain method. |
void |
loadAgentLibrary(java.lang.String agentLibrary,
java.lang.String options)
Load agent library - library name will be expanded in target VM. |
void |
loadAgentPath(java.lang.String agentLibrary,
java.lang.String options)
Load agent - absolute path of library provided to target VM. |
void |
localDataDump()
|
java.io.InputStream |
printFlag(java.lang.String name)
|
java.io.InputStream |
remoteDataDump(java.lang.Object... args)
|
java.io.InputStream |
setFlag(java.lang.String name,
java.lang.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(java.lang.String agentLibrary, java.lang.String options) throws AgentLoadException, AgentInitializationException, java.io.IOException
loadAgentLibrary
in class VirtualMachine
agentLibrary
- 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
java.io.IOException
- If an I/O error occursAgentInitializationException.returnValue()
public void loadAgentPath(java.lang.String agentLibrary, java.lang.String options) throws AgentLoadException, AgentInitializationException, java.io.IOException
loadAgentPath
in class VirtualMachine
agentLibrary
- 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
java.io.IOException
- If an I/O error occursAgentInitializationException.returnValue()
public void loadAgent(java.lang.String agent, java.lang.String options) throws AgentLoadException, AgentInitializationException, java.io.IOException
loadAgent
in class VirtualMachine
agent
- 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
java.io.IOException
- If an I/O error occurspublic java.util.Properties getSystemProperties() throws java.io.IOException
getSystemProperties
in class VirtualMachine
java.io.IOException
- If an I/O error occursSystem.getProperties()
,
VirtualMachine.loadAgentLibrary(java.lang.String, java.lang.String)
,
VirtualMachine.loadAgent(java.lang.String, java.lang.String)
public java.util.Properties getAgentProperties() throws java.io.IOException
VirtualMachine
getAgentProperties
in class VirtualMachine
java.io.IOException
- If an I/O error occurspublic void localDataDump() throws java.io.IOException
java.io.IOException
public java.io.InputStream remoteDataDump(java.lang.Object... args) throws java.io.IOException
java.io.IOException
public java.io.InputStream dumpHeap(java.lang.Object... args) throws java.io.IOException
java.io.IOException
public java.io.InputStream heapHisto(java.lang.Object... args) throws java.io.IOException
java.io.IOException
public java.io.InputStream setFlag(java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public java.io.InputStream printFlag(java.lang.String name) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |