public final class RunningTaskImpl extends Object implements RunningTask
| Constructor and Description |
|---|
RunningTaskImpl(EvaluatorManager evaluatorManager,
String taskId,
EvaluatorContext evaluatorContext,
TaskRepresenter taskRepresenter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Signal the task to shut down.
|
void |
close(byte[] message)
Signal the task to shut down.
|
ActiveContext |
getActiveContext() |
String |
getId()
Returns an identifier of this object.
|
TaskRepresenter |
getTaskRepresenter()
Gets the representer of task.
|
void |
send(byte[] message)
Sends the message to the running task.
|
void |
suspend()
Signal the task to suspend.
|
void |
suspend(byte[] message)
Signal the task to suspend.
|
String |
toString() |
public RunningTaskImpl(EvaluatorManager evaluatorManager, String taskId, EvaluatorContext evaluatorContext, TaskRepresenter taskRepresenter)
public ActiveContext getActiveContext()
getActiveContext in interface RunningTaskpublic String getId()
IdentifiablegetId in interface Identifiablepublic void send(byte[] message)
RunningTasksend in interface RunningTaskmessage - to be sent to the running taskpublic void close()
RunningTaskclose in interface AutoCloseableclose in interface RunningTaskpublic void close(byte[] message)
RunningTaskclose in interface RunningTaskmessage - a message that is sent to the Task.public void suspend(byte[] message)
RunningTasksuspend in interface RunningTaskmessage - a message that is sent to the Task.public void suspend()
RunningTasksuspend in interface RunningTaskpublic TaskRepresenter getTaskRepresenter()
RunningTaskgetTaskRepresenter in interface RunningTaskCopyright © 2017 The Apache Software Foundation. All rights reserved.