public abstract static class VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel extends Object implements VirtualMachine.ForHotSpot.Connection, VirtualMachine.ForHotSpot.Connection.Response
VirtualMachine.ForHotSpot.Connection.Factory, VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor, VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe, VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel, VirtualMachine.ForHotSpot.Connection.Response
Constructor and Description |
---|
OnPersistentByteChannel() |
Modifier and Type | Method and Description |
---|---|
VirtualMachine.ForHotSpot.Connection.Response |
execute(String protocol,
String... argument)
Executes a command on the current connection.
|
void |
release()
Releases this response.
|
abstract void |
write(byte[] buffer)
Writes to the connected virtual machine.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
public VirtualMachine.ForHotSpot.Connection.Response execute(String protocol, String... argument) throws IOException
execute
in interface VirtualMachine.ForHotSpot.Connection
protocol
- The target VMs protocol version for the attach API.argument
- The arguments to send to the target VM.IOException
- If an I/O error occurred.public void release()
release
in interface VirtualMachine.ForHotSpot.Connection.Response
public abstract void write(byte[] buffer) throws IOException
buffer
- The buffer to write to.IOException
- If an I/O exception occurs during writing.Copyright © 2014–2019. All rights reserved.