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.
|
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 RunningTask
public String getId()
Identifiable
getId
in interface Identifiable
public void send(byte[] message)
RunningTask
send
in interface RunningTask
message
- to be sent to the running taskpublic void close()
RunningTask
close
in interface AutoCloseable
close
in interface RunningTask
public void close(byte[] message)
RunningTask
close
in interface RunningTask
message
- a message that is sent to the Task.public void suspend(byte[] message)
RunningTask
suspend
in interface RunningTask
message
- a message that is sent to the Task.public void suspend()
RunningTask
suspend
in interface RunningTask
Copyright © 2016 The Apache Software Foundation. All rights reserved.