public final class InspectServerSession extends Object implements org.graalvm.polyglot.io.MessageEndpoint
| Modifier and Type | Class and Description |
|---|---|
class |
InspectServerSession.CommandPostProcessor
A post-processor of commands.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consoleAPICall(String type,
Object text) |
static InspectServerSession |
create(InspectorExecutionContext context,
boolean debugBreak,
ConnectionWatcher connectionWatcher) |
void |
dispose() |
DebuggerDomain |
getDebugger() |
void |
notifyClosing() |
void |
onClose(Runnable onCloseTask) |
void |
open(JSONMessageListener messageListener)
Open the communication with a
JSONMessageListener. |
void |
open(org.graalvm.polyglot.io.MessageEndpoint messageListener)
Open the communication with a
MessageEndpoint. |
void |
sendBinary(ByteBuffer data) |
void |
sendClose() |
void |
sendCommand(Command cmd) |
void |
sendPing(ByteBuffer data) |
void |
sendPong(ByteBuffer data) |
void |
sendText(String message) |
public static InspectServerSession create(InspectorExecutionContext context, boolean debugBreak, ConnectionWatcher connectionWatcher)
public void onClose(Runnable onCloseTask)
public void sendClose()
throws IOException
sendClose in interface org.graalvm.polyglot.io.MessageEndpointIOExceptionpublic DebuggerDomain getDebugger()
public void notifyClosing()
public void dispose()
public void open(org.graalvm.polyglot.io.MessageEndpoint messageListener)
MessageEndpoint.public void open(JSONMessageListener messageListener)
JSONMessageListener.public void sendText(String message) throws IOException
sendText in interface org.graalvm.polyglot.io.MessageEndpointIOExceptionpublic void sendCommand(Command cmd)
public void sendBinary(ByteBuffer data)
sendBinary in interface org.graalvm.polyglot.io.MessageEndpointpublic void sendPing(ByteBuffer data) throws IOException
sendPing in interface org.graalvm.polyglot.io.MessageEndpointIOExceptionpublic void sendPong(ByteBuffer data) throws IOException
sendPong in interface org.graalvm.polyglot.io.MessageEndpointIOException