Package sun.tools.attach
Class SolarisVirtualMachine
- java.lang.Object
-
- com.sun.tools.attach.VirtualMachine
-
- sun.tools.attach.HotSpotVirtualMachine
-
- sun.tools.attach.SolarisVirtualMachine
-
public class SolarisVirtualMachine extends HotSpotVirtualMachine
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
SolarisVirtualMachine.SocketInputStream
-
Constructor Summary
Constructors Constructor Description SolarisVirtualMachine(AttachProvider provider, java.lang.String vmid)
Attaches to the target VM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class sun.tools.attach.HotSpotVirtualMachine
attachTimeout, dumpHeap, executeJCmd, getAgentProperties, getSystemProperties, heapHisto, loadAgent, loadAgentLibrary, loadAgentPath, localDataDump, printFlag, readInt, remoteDataDump, setFlag
-
Methods inherited from class com.sun.tools.attach.VirtualMachine
attach, attach, equals, hashCode, id, list, loadAgent, loadAgentLibrary, loadAgentPath, provider, toString
-
-
-
-
Field Detail
-
tmpdir
private static final java.lang.String tmpdir
- See Also:
- Constant Field Values
-
fd
private int fd
-
-
Constructor Detail
-
SolarisVirtualMachine
public SolarisVirtualMachine(AttachProvider provider, java.lang.String vmid) throws AttachNotSupportedException, java.io.IOException
Attaches to the target VM- Throws:
AttachNotSupportedException
java.io.IOException
-
-
Method Detail
-
detach
public void detach() throws java.io.IOException
Detach from the target VM- Specified by:
detach
in classVirtualMachine
- Throws:
java.io.IOException
- If an I/O error occurs
-
execute
java.io.InputStream execute(java.lang.String cmd, java.lang.Object... args) throws AgentLoadException, java.io.IOException
Execute the given command in the target VM.- Specified by:
execute
in classHotSpotVirtualMachine
- Throws:
AgentLoadException
java.io.IOException
-
openDoor
private int openDoor(int pid) throws java.io.IOException
- Throws:
java.io.IOException
-
createAttachFile
private java.io.File createAttachFile(int pid) throws java.io.IOException
- Throws:
java.io.IOException
-
open
static int open(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
close
static void close(int fd) throws java.io.IOException
- Throws:
java.io.IOException
-
read
static int read(int fd, byte[] buf, int off, int buflen) throws java.io.IOException
- Throws:
java.io.IOException
-
checkPermissions
static void checkPermissions(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
sigquit
static void sigquit(int pid) throws java.io.IOException
- Throws:
java.io.IOException
-
enqueue
static int enqueue(int fd, java.lang.String cmd, java.lang.Object... args) throws java.io.IOException
- Throws:
java.io.IOException
-
-