public class SolarisVirtualMachine extends HotSpotVirtualMachine
Modifier and Type | Class and Description |
---|---|
private class |
SolarisVirtualMachine.SocketInputStream |
Modifier and Type | Field and Description |
---|---|
private int |
fd |
private static java.lang.String |
tmpdir |
Constructor and Description |
---|
SolarisVirtualMachine(AttachProvider provider,
java.lang.String vmid)
Attaches to the target VM
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
checkPermissions(java.lang.String path) |
(package private) static void |
close(int fd) |
private java.io.File |
createAttachFile(int pid) |
void |
detach()
Detach from the target VM
|
(package private) static int |
enqueue(int fd,
java.lang.String cmd,
java.lang.Object... args) |
(package private) java.io.InputStream |
execute(java.lang.String cmd,
java.lang.Object... args)
Execute the given command in the target VM.
|
(package private) static int |
open(java.lang.String path) |
private int |
openDoor(int pid) |
(package private) static int |
read(int fd,
byte[] buf,
int off,
int buflen) |
(package private) static void |
sigquit(int pid) |
attachTimeout, dumpHeap, executeJCmd, getAgentProperties, getSystemProperties, heapHisto, loadAgent, loadAgentLibrary, loadAgentPath, localDataDump, printFlag, readInt, remoteDataDump, setFlag
attach, attach, equals, hashCode, id, list, loadAgent, loadAgentLibrary, loadAgentPath, provider, toString
private static final java.lang.String tmpdir
private int fd
public SolarisVirtualMachine(AttachProvider provider, java.lang.String vmid) throws AttachNotSupportedException, java.io.IOException
AttachNotSupportedException
java.io.IOException
public void detach() throws java.io.IOException
detach
in class VirtualMachine
java.io.IOException
- If an I/O error occursjava.io.InputStream execute(java.lang.String cmd, java.lang.Object... args) throws AgentLoadException, java.io.IOException
execute
in class HotSpotVirtualMachine
AgentLoadException
java.io.IOException
private int openDoor(int pid) throws java.io.IOException
java.io.IOException
private java.io.File createAttachFile(int pid) throws java.io.IOException
java.io.IOException
static int open(java.lang.String path) throws java.io.IOException
java.io.IOException
static void close(int fd) throws java.io.IOException
java.io.IOException
static int read(int fd, byte[] buf, int off, int buflen) throws java.io.IOException
java.io.IOException
static void checkPermissions(java.lang.String path) throws java.io.IOException
java.io.IOException
static void sigquit(int pid) throws java.io.IOException
java.io.IOException
static int enqueue(int fd, java.lang.String cmd, java.lang.Object... args) throws java.io.IOException
java.io.IOException