org.apache.tez.dag.api
Interface VertexManagerPlugin


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

initialize

void initialize(VertexManagerPluginContext context)
Initialize the plugin. Called when the vertex is initializing. This happens after all source vertices and inputs have initialized

Parameters:
context -

onVertexStarted

void onVertexStarted(Map<String,List<Integer>> completions)
Notification that the vertex is ready to start running tasks

Parameters:
completions - Source vertices and all their tasks that have already completed

onSourceTaskCompleted

void onSourceTaskCompleted(String srcVertexName,
                           Integer taskId)
Notification of a source vertex completion.

Parameters:
srcVertexName -
taskId - Index of the task that completed

onVertexManagerEventReceived

void onVertexManagerEventReceived(VertexManagerEvent vmEvent)
Notification of an event directly sent to this vertex manager

Parameters:
vmEvent -

onRootVertexInitialized

void onRootVertexInitialized(String inputName,
                             InputDescriptor inputDescriptor,
                             List<Event> events)
Notification that the inputs of this vertex have initialized

Parameters:
inputName -
inputDescriptor -
events -


Copyright © 2014 Apache Software Foundation. All rights reserved.