Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Response
- java.lang.Object
-
- net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Response
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,VirtualMachine.ForHotSpot.Connection.Response
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor
protected static class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Response extends java.lang.Object implements VirtualMachine.ForHotSpot.Connection.Response
A response from a VM using a Solaris door.
-
-
Field Summary
Fields Modifier and Type Field Description private int
handle
The door handle.private VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary
library
The Solaris library to use.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Response(VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library, int handle)
Creates a response from a VM using a Solaris door.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read(byte[] buffer)
Reads a buffer from the target VM.
-
-
-
Field Detail
-
library
private final VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library
The Solaris library to use.
-
handle
private final int handle
The door handle.
-
-
Constructor Detail
-
Response
protected Response(VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library, int handle)
Creates a response from a VM using a Solaris door.- Parameters:
library
- The Solaris library to use.handle
- The door handle.
-
-
Method Detail
-
read
public int read(byte[] buffer)
Reads a buffer from the target VM.- Specified by:
read
in interfaceVirtualMachine.ForHotSpot.Connection.Response
- Parameters:
buffer
- The buffer to read to.- Returns:
- The bytes read or
-1
if no more bytes could be read.
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-