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 ClassesModifier and TypeInterfaceDescriptionstatic class
A structure representing the argument to a Solaris door operation.Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
-
Field Summary
Fields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
-
Method Summary
Modifier and TypeMethodDescriptionint
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
Opens a file.int
read
(int handle, ByteBuffer buffer, int length) Reads from a handle.
-
Method Details
-
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
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
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.
-