|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VertexManagerPlugin
Interface to plugin user logic into the VertexManager to implement runtime scheduling optimizations and graph reconfiguration. The plugin will be notified of interesting events in the vertex execution life cycle and can respond to them by via the context object
| Method Summary | |
|---|---|
void |
initialize(VertexManagerPluginContext context)
Initialize the plugin. |
void |
onRootVertexInitialized(String inputName,
InputDescriptor inputDescriptor,
List<Event> events)
Notification that the inputs of this vertex have initialized |
void |
onSourceTaskCompleted(String srcVertexName,
Integer taskId)
Notification of a source vertex completion. |
void |
onVertexManagerEventReceived(VertexManagerEvent vmEvent)
Notification of an event directly sent to this vertex manager |
void |
onVertexStarted(Map<String,List<Integer>> completions)
Notification that the vertex is ready to start running tasks |
| Method Detail |
|---|
void initialize(VertexManagerPluginContext context)
context - void onVertexStarted(Map<String,List<Integer>> completions)
completions - Source vertices and all their tasks that have already completed
void onSourceTaskCompleted(String srcVertexName,
Integer taskId)
srcVertexName - taskId - Index of the task that completedvoid onVertexManagerEventReceived(VertexManagerEvent vmEvent)
vmEvent -
void onRootVertexInitialized(String inputName,
InputDescriptor inputDescriptor,
List<Event> events)
inputName - inputDescriptor - events -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||