| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| protected static class | |
| pack-priv abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final boolean | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private volatile long | |
| private static final long | |
| private static long | |
| private static final int | |
| private static final String | |
| private final boolean | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| private static boolean | |
| protected static void | |
| private int | |
| public InputStream | |
| private String | |
| pack-priv abstract InputStream | |
| public InputStream | |
| public InputStream | |
| public Properties | getAgentProperties()
Implements abstract com. Returns the current agent properties in the target virtual machine. |
| protected HotSpotVirtualMachine. | |
| public Properties | getSystemProperties()
Implements abstract com. Returns the current system properties in the target virtual machine. |
| public InputStream | |
| protected boolean | |
| protected boolean | |
| public void | loadAgent(String agent, String options)
Implements abstract com. Loads an agent. |
| private void | |
| public void | loadAgentLibrary(String agentLibrary, String options)
Implements abstract com. Loads an agent library. |
| public void | loadAgentPath(String agentLibrary, String options)
Implements abstract com. Load a native agent library by full pathname. |
| public void | |
| private static long | |
| public InputStream | |
| pack-priv void | |
| pack-priv int | |
| pack-priv String | |
| public InputStream | |
| public InputStream | |
| public String | startLocalManagementAgent()
Implements abstract com. Starts the local JMX management agent in the target virtual machine. |
| public void | startManagementAgent(Properties agentProperties)
Implements abstract com. Starts the JMX management agent in the target virtual machine. |
| private static String | |
| protected void | writeCommand(HotSpotVirtualMachine.
|
| private void |
| ALLOW_ATTACH_SELF | back to summary |
|---|---|
| private static final boolean ALLOW_ATTACH_SELF | |
| ALLOW_STREAMING_OUTPUT | back to summary |
|---|---|
| private static final boolean ALLOW_STREAMING_OUTPUT | |
| ATTACH_ERROR_BADJAR | back to summary |
|---|---|
| private static final int ATTACH_ERROR_BADJAR | |
| ATTACH_ERROR_BADVERSION | back to summary |
|---|---|
| private static final int ATTACH_ERROR_BADVERSION | |
| ATTACH_ERROR_NOTONCP | back to summary |
|---|---|
| private static final int ATTACH_ERROR_NOTONCP | |
| ATTACH_ERROR_STARTFAIL | back to summary |
|---|---|
| private static final int ATTACH_ERROR_STARTFAIL | |
| attachTimeout | back to summary |
|---|---|
| private volatile long attachTimeout | |
| CURRENT_PID | back to summary |
|---|---|
| private static final long CURRENT_PID | |
| defaultAttachTimeout | back to summary |
|---|---|
| private static long defaultAttachTimeout | |
| JNI_ENOMEM | back to summary |
|---|---|
| private static final int JNI_ENOMEM | |
| MANAGEMENT_PREFIX | back to summary |
|---|---|
| private static final String MANAGEMENT_PREFIX | |
| selfAttach | back to summary |
|---|---|
| private final boolean selfAttach | |
| VERSION_1 | back to summary |
|---|---|
| protected static final int VERSION_1 | |
| VERSION_2 | back to summary |
|---|---|
| protected static final int VERSION_2 | |
| HotSpotVirtualMachine | back to summary |
|---|---|
| pack-priv HotSpotVirtualMachine(AttachProvider provider, String id) throws AttachNotSupportedException, IOException | |
| attachTimeout | back to summary |
|---|---|
| pack-priv long attachTimeout() | |
| checkedKeyName | back to summary |
|---|---|
| private static boolean checkedKeyName(Object key) | |
| checkNulls | back to summary |
|---|---|
| protected static void checkNulls(Object... args) | |
| dataSize | back to summary |
|---|---|
| private int dataSize(Object obj) | |
| dumpHeap | back to summary |
|---|---|
| public InputStream dumpHeap(Object... args) throws IOException | |
| escape | back to summary |
|---|---|
| private String escape(Object arg) | |
| execute | back to summary |
|---|---|
| pack-priv abstract InputStream execute(String cmd, Object... args) throws AgentLoadException, IOException | |
| executeCommand | back to summary |
|---|---|
| public InputStream executeCommand(String cmd, Object... args) throws IOException | |
| executeJCmd | back to summary |
|---|---|
| public InputStream executeJCmd(String command) throws IOException | |
| getAgentProperties | back to summary |
|---|---|
| public Properties getAgentProperties() throws IOException Implements abstract com. Doc from com. Returns the current agent properties in the target virtual machine. The target virtual machine can maintain a list of properties on behalf of agents. The manner in which this is done, the names of the properties, and the types of values that are allowed, is implementation specific. Agent properties are typically used to store communication end-points and other agent configuration details. For example, a debugger agent might create an agent property for its transport address. This method returns the agent properties whose key and value is a
| |
| getDefaultProps | back to summary |
|---|---|
| protected HotSpotVirtualMachine. | |
| getSystemProperties | back to summary |
|---|---|
| public Properties getSystemProperties() throws IOException Implements abstract com. Doc from com. Returns the current system properties in the target virtual machine. This method returns the system properties in the target virtual
machine. Properties whose key or value is not a This method is typically used to decide which agent to load into
the target virtual machine with
| |
| heapHisto | back to summary |
|---|---|
| public InputStream heapHisto(Object... args) throws IOException | |
| isAPIv2Enabled | back to summary |
|---|---|
| protected boolean isAPIv2Enabled() | |
| isStreamingEnabled | back to summary |
|---|---|
| protected boolean isStreamingEnabled() | |
| loadAgent | back to summary |
|---|---|
| public void loadAgent(String agent, String options) throws AgentLoadException, AgentInitializationException, IOException Implements abstract com. Doc from com. Loads an agent. The agent provided to this method is a path name to a JAR file on the file
system of the target virtual machine. This path is passed to the target virtual
machine where it is interpreted. The target virtual machine attempts to start
the agent as specified by the
| |
| loadAgentLibrary | back to summary |
|---|---|
| private void loadAgentLibrary(String agentLibrary, boolean isAbsolute, String options) throws AgentLoadException, AgentInitializationException, IOException | |
| loadAgentLibrary | back to summary |
|---|---|
| public void loadAgentLibrary(String agentLibrary, String options) throws AgentLoadException, AgentInitializationException, IOException Implements abstract com. Doc from com. Loads an agent library. A JVM TI
client is called an agent. It is developed in a native language.
A JVM TI agent is deployed in a platform specific manner but it is typically the
platform equivalent of a dynamic library. Alternatively, it may be statically linked into the VM.
This method causes the given agent library to be loaded into the target
VM (if not already loaded or if not statically linked into the VM).
It then causes the target VM to invoke the The agent library provided is the name of the agent library. It is interpreted
in the target virtual machine in an implementation-dependent manner. Typically an
implementation will expand the library name into an operating system specific file
name. For example, on UNIX systems, the name If the
| |
| loadAgentPath | back to summary |
|---|---|
| public void loadAgentPath(String agentLibrary, String options) throws AgentLoadException, AgentInitializationException, IOException Implements abstract com. Doc from com. Load a native agent library by full pathname. A JVM TI
client is called an agent. It is developed in a native language.
A JVM TI agent is deployed in a platform specific manner but it is typically the
platform equivalent of a dynamic library. Alternatively, the native
library specified by the agentPath parameter may be statically
linked with the VM. The parsing of the agentPath parameter into
a statically linked library name is done in a platform
specific manner in the VM. For example, in UNIX, an agentPath parameter
of The agent library provided is the absolute path from which to load the
agent library. Unlike If the
| |
| localDataDump | back to summary |
|---|---|
| public void localDataDump() throws IOException | |
| pid | back to summary |
|---|---|
private static long pid()
| |
| printFlag | back to summary |
|---|---|
| public InputStream printFlag(String name) throws IOException | |
| processCompletionStatus | back to summary |
|---|---|
| pack-priv void processCompletionStatus(IOException ioe, String cmd, InputStream sis) throws AgentLoadException, IOException | |
| readInt | back to summary |
|---|---|
| pack-priv int readInt(InputStream in) throws IOException | |
| readMessage | back to summary |
|---|---|
| pack-priv String readMessage(InputStream in) throws IOException | |
| remoteDataDump | back to summary |
|---|---|
| public InputStream remoteDataDump(Object... args) throws IOException | |
| setFlag | back to summary |
|---|---|
| public InputStream setFlag(String name, String value) throws IOException | |
| startLocalManagementAgent | back to summary |
|---|---|
| public String startLocalManagementAgent() throws IOException Implements abstract com. Doc from com. Starts the local JMX management agent in the target virtual machine. See the online documentation for Monitoring and Management Using JMX Technology for further details.
| |
| startManagementAgent | back to summary |
|---|---|
| public void startManagementAgent(Properties agentProperties) throws IOException Implements abstract com. Doc from com. Starts the JMX management agent in the target virtual machine. The configuration properties are the same as those specified on
the command line when starting the JMX management agent. In the same
way as on the command line, you need to specify at least the
See the online documentation for Monitoring and Management Using JMX Technology for further details.
| |
| stripKeyName | back to summary |
|---|---|
| private static String stripKeyName(Object key) | |
| writeCommand | back to summary |
|---|---|
| protected void writeCommand(HotSpotVirtualMachine. | |
| writeString | back to summary |
|---|---|
| private void writeString(HotSpotVirtualMachine. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| write | back to summary |
|---|---|
| public void write(byte[] buffer, int offset, int length) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| public static final String | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | |
| pack-priv void | |
| pack-priv int |
| options | back to summary |
|---|---|
| private Map<String, String> options | |
| STREAMING | back to summary |
|---|---|
| public static final String STREAMING | |
| ver | back to summary |
|---|---|
| private int ver | |
| OperationProperties | back to summary |
|---|---|
| pack-priv OperationProperties(int ver) | |
| options | back to summary |
|---|---|
| pack-priv String options() | |
| setOption | back to summary |
|---|---|
| pack-priv void setOption(String name, String value) | |
| version | back to summary |
|---|---|
| pack-priv int version() | |
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public synchronized void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| protected abstract int | |
| public synchronized int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public synchronized int | read(byte[] bs, int off, int len)
Overrides java. Reads up to |
| fd | back to summary |
|---|---|
| private long fd | |
| SocketInputStream | back to summary |
|---|---|
| public SocketInputStream(long fd) | |
| close | back to summary |
|---|---|
| protected abstract void close(long fd) throws IOException | |
| close | back to summary |
|---|---|
| public synchronized void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| protected abstract int read(long fd, byte[] bs, int off, int len) throws IOException | |
| read | back to summary |
|---|---|
| public synchronized int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public synchronized int read(byte[] bs, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |