public class VMDebugClientHandler extends Object implements DebugClientHandler
VMDebugSession The Debug Session class will be used to hold context for each client.
Each client will get its own instance of debug session.| Modifier and Type | Method and Description |
|---|---|
void |
addWorkerContext(WorkerExecutionContext ctx)
Called when adding a context.
|
void |
clearChannel()
Method to remove web socket channel.
|
Map<String,WorkerExecutionContext> |
getAllWorkerContexts()
Method to get all worker contexts.
|
WorkerExecutionContext |
getWorkerContext(String workerId)
Method to get worker context given the workerId.
|
boolean |
isChannelActive()
Method to check whether channel is active or not.
|
void |
notifyExit()
Called when main program exit.
|
void |
notifyHalt(MessageDTO message)
Called when executor hits a break point.
|
void |
sendCustomMsg(MessageDTO message)
Send a custom message to the client.
|
void |
setChannel(io.netty.channel.Channel channel)
Method to set web socket channel required for communication.
|
public void addWorkerContext(WorkerExecutionContext ctx)
DebugClientHandleraddWorkerContext in interface DebugClientHandlerctx - to be added to the map.public WorkerExecutionContext getWorkerContext(String workerId)
DebugClientHandlergetWorkerContext in interface DebugClientHandlerworkerId - of the thread.public Map<String,WorkerExecutionContext> getAllWorkerContexts()
DebugClientHandlergetAllWorkerContexts in interface DebugClientHandlerpublic void setChannel(io.netty.channel.Channel channel)
throws DebugException
DebugClientHandlersetChannel in interface DebugClientHandlerchannel - required for communication.DebugException - in case of failure.public void clearChannel()
DebugClientHandlerclearChannel in interface DebugClientHandlerpublic boolean isChannelActive()
DebugClientHandlerisChannelActive in interface DebugClientHandlerpublic void notifyExit()
DebugClientHandlernotifyExit in interface DebugClientHandlerpublic void notifyHalt(MessageDTO message)
DebugClientHandlernotifyHalt in interface DebugClientHandlermessage - to send to the client.public void sendCustomMsg(MessageDTO message)
DebugClientHandlersendCustomMsg in interface DebugClientHandlermessage - message to send to the clientCopyright © 2018 WSO2. All rights reserved.