Package net.bytebuddy.agent
Interface VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary
-
- All Superinterfaces:
com.sun.jna.Library
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor
protected static interface VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary extends com.sun.jna.LibraryA library for interacting with Solaris.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classVirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary.DoorArgumentA structure representing the argument to a Solaris door operation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intclose(int descriptor)Releases a descriptor.intdoor_call(int descriptor, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary.DoorArgument argument)Executes a door call.intkill(int processId, int signal)Sends a kill signal to the target VM.intopen(java.lang.String file, int flags)Opens a file.intread(int handle, java.nio.ByteBuffer buffer, int length)Reads from a handle.
-
-
-
Method Detail
-
kill
int kill(int processId, int signal) throws com.sun.jna.LastErrorExceptionSends a kill signal to the target VM.- Parameters:
processId- The target process's id.signal- The signal to send.- Returns:
- The return code.
- Throws:
com.sun.jna.LastErrorException- If an error occurred while sending the signal.
-
open
int open(java.lang.String file, int flags) throws com.sun.jna.LastErrorExceptionOpens a file.- Parameters:
file- The file name.flags- the flags for opening.- Returns:
- The file descriptor.
- Throws:
com.sun.jna.LastErrorException- If the file could not be opened.
-
read
int read(int handle, java.nio.ByteBuffer buffer, int length) throws com.sun.jna.LastErrorExceptionReads from a handle.- Parameters:
handle- The handle representing the source being read.buffer- The buffer to read to.length- The buffer length.- Returns:
- The amount of bytes being read.
- Throws:
com.sun.jna.LastErrorException- If a read operation failed.
-
close
int close(int descriptor) throws com.sun.jna.LastErrorException
Releases a descriptor.- Parameters:
descriptor- The descriptor to release.- Returns:
- The return code.
- Throws:
com.sun.jna.LastErrorException- If the descriptor could not be closed.
-
door_call
int door_call(int descriptor, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary.DoorArgument argument) throws com.sun.jna.LastErrorExceptionExecutes a door call.- Parameters:
descriptor- The door's descriptor.argument- A pointer to the argument.- Returns:
- The door's handle.
- Throws:
com.sun.jna.LastErrorException- If the door call failed.
-
-