public class TaskConfiguration extends ConfigurationModuleBuilder
Modifier and Type | Field and Description |
---|---|
static ConfigurationModule |
CONF
ConfigurationModule to fill out for a Task configuration.
|
static RequiredParameter<String> |
IDENTIFIER
Identifier for the task.
|
static OptionalParameter<String> |
MEMENTO
The Base64 encoded memento to be passed to Task.call().
|
static OptionalImpl<EventHandler<CloseEvent>> |
ON_CLOSE
Handler for closure requests from the driver.
|
static OptionalImpl<EventHandler<DriverMessage>> |
ON_MESSAGE
Handler for messages from the driver.
|
static OptionalImpl<TaskMessageSource> |
ON_SEND_MESSAGE
Message source invoked upon each evaluator heartbeat.
|
static OptionalImpl<EventHandler<SuspendEvent>> |
ON_SUSPEND
Handler for task suspension.
|
static OptionalImpl<EventHandler<TaskStart>> |
ON_TASK_STARTED
Event handler to receive TaskStart after the Task.call() method was called.
|
static OptionalImpl<EventHandler<TaskStop>> |
ON_TASK_STOP
Event handler to receive TaskStop after the Task.call() method returned.
|
static RequiredImpl<Task> |
TASK
The task to instantiate.
|
Constructor and Description |
---|
TaskConfiguration() |
bind, bindConstructor, bindConstructor, bindImplementation, bindImplementation, bindImplementation, bindList, bindList, bindList, bindNamedParameter, bindNamedParameter, bindNamedParameter, bindNamedParameter, bindSetEntry, bindSetEntry, bindSetEntry, bindSetEntry, build, merge
public static final RequiredParameter<String> IDENTIFIER
public static final RequiredImpl<Task> TASK
public static final OptionalImpl<EventHandler<SuspendEvent>> ON_SUSPEND
public static final OptionalImpl<EventHandler<DriverMessage>> ON_MESSAGE
public static final OptionalImpl<EventHandler<CloseEvent>> ON_CLOSE
public static final OptionalParameter<String> MEMENTO
public static final OptionalImpl<TaskMessageSource> ON_SEND_MESSAGE
public static final OptionalImpl<EventHandler<TaskStart>> ON_TASK_STARTED
public static final OptionalImpl<EventHandler<TaskStop>> ON_TASK_STOP
public static final ConfigurationModule CONF
public TaskConfiguration()
Copyright © 2015 The Apache Software Foundation. All rights reserved.