public abstract class

Task

extends Object
implements ExternalViewChangeListener
java.lang.Object
   ↳ org.apache.helix.taskexecution.Task
Known Direct Subclasses

Summary

Fields
protected final String id
protected final Set<String> parentIds
protected final TaskResultStore resultStore
Public Constructors
Task(String id, Set<String> parentIds, HelixManager helixManager, TaskResultStore resultStore)
Public Methods
final void execute(String resourceName, int numPartitions, int partitionNum)
void onExternalViewChange(List<ExternalView> externalViewList, NotificationContext changeContext)
Invoked when external view changes
Protected Methods
abstract void executeImpl(String resourceName, int numPartitions, int partitionNum)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.helix.ExternalViewChangeListener

Fields

protected final String id

protected final Set<String> parentIds

protected final TaskResultStore resultStore

Public Constructors

public Task (String id, Set<String> parentIds, HelixManager helixManager, TaskResultStore resultStore)

Public Methods

public final void execute (String resourceName, int numPartitions, int partitionNum)

Throws
Exception

public void onExternalViewChange (List<ExternalView> externalViewList, NotificationContext changeContext)

Invoked when external view changes

Parameters
externalViewList a list of ExternalViews
changeContext the change event and state

Protected Methods

protected abstract void executeImpl (String resourceName, int numPartitions, int partitionNum)

Throws
Exception