public interface ActiveContext extends Identifiable, AutoCloseable, ContextBase, TaskSubmittable, ContextSubmittable
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
sendMessage(byte[] message)
Send the active context the message, which will be delivered to all registered
ContextMessageHandler , for this context. |
void |
submitContext(Configuration contextConfiguration)
Submit a Context.
|
void |
submitContextAndService(Configuration contextConfiguration,
Configuration serviceConfiguration)
Submit a Context and a Service Configuration.
|
void |
submitTask(Configuration taskConf)
Submits a Task (encoded in the Configuration) for execution.
|
getEvaluatorDescriptor, getEvaluatorId, getId, getParentId
void close()
close
in interface AutoCloseable
void submitTask(Configuration taskConf)
TaskSubmittable
submitTask
in interface TaskSubmittable
taskConf
- the Configuration. See TaskConfiguration for detailsvoid submitContext(Configuration contextConfiguration)
ContextSubmittable
submitContext
in interface ContextSubmittable
contextConfiguration
- the Configuration of the EvaluatorContext. See ContextConfiguration for details.void submitContextAndService(Configuration contextConfiguration, Configuration serviceConfiguration)
ContextSubmittable
submitContextAndService
in interface ContextSubmittable
contextConfiguration
- the Configuration of the EvaluatorContext. See ContextConfiguration for details.serviceConfiguration
- the Configuration for the Services. See ServiceConfiguration for details.void sendMessage(byte[] message)
ContextMessageHandler
, for this context.message
- Copyright © 2015 The Apache Software Foundation. All rights reserved.