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 classSolarisVirtualMachine.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 voidcheckPermissions(java.lang.String path)(package private) static voidclose(int fd)private java.io.FilecreateAttachFile(int pid)voiddetach()Detach from the target VM(package private) static intenqueue(int fd, java.lang.String cmd, java.lang.Object... args)(package private) java.io.InputStreamexecute(java.lang.String cmd, java.lang.Object... args)Execute the given command in the target VM.(package private) static intopen(java.lang.String path)private intopenDoor(int pid)(package private) static intread(int fd, byte[] buf, int off, int buflen)(package private) static voidsigquit(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:
AttachNotSupportedExceptionjava.io.IOException
-
-
Method Detail
-
detach
public void detach() throws java.io.IOExceptionDetach from the target VM- Specified by:
detachin 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.IOExceptionExecute the given command in the target VM.- Specified by:
executein classHotSpotVirtualMachine- Throws:
AgentLoadExceptionjava.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
-
-