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.Library
A library for interacting with Solaris.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary.DoorArgument
A structure representing the argument to a Solaris door operation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
close(int descriptor)
Releases a descriptor.int
door_call(int descriptor, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary.DoorArgument argument)
Executes a door call.int
kill(int processId, int signal)
Sends a kill signal to the target VM.int
open(String file, int flags)
Opens a file.int
read(int handle, ByteBuffer buffer, int length)
Reads from a handle.
-
-
-
Method Detail
-
kill
int kill(int processId, int signal) throws com.sun.jna.LastErrorException
Sends 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(String file, int flags) throws com.sun.jna.LastErrorException
Opens 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, ByteBuffer buffer, int length) throws com.sun.jna.LastErrorException
Reads 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.LastErrorException
Executes 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.
-
-