public interface DebugClientHandler
| 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.
|
void addWorkerContext(WorkerExecutionContext ctx)
ctx - to be added to the map.WorkerExecutionContext getWorkerContext(String workerId)
workerId - of the thread.Map<String,WorkerExecutionContext> getAllWorkerContexts()
void setChannel(io.netty.channel.Channel channel)
throws DebugException
channel - required for communication.DebugException - in case of failure.void clearChannel()
boolean isChannelActive()
void notifyExit()
void notifyHalt(MessageDTO message)
message - to send to the client.void sendCustomMsg(MessageDTO message)
message - message to send to the clientCopyright © 2018 WSO2. All rights reserved.