TaskHelper

TaskHelper

new TaskHelper(scheduler)

Represents a TaskHelper object

Source:
Parameters:
Name Type Description
scheduler object

The scheduler object.

Methods

deleteTask(taskId)

Delete task nodes from ZooKeeper.

Source:
Parameters:
Name Type Description
taskId string

The id of the task which should be deleted from ZooKeeper.

loadTasks()

Load the task nodes belonging to the framework from ZooKeeper.

Source:

saveTask(task)

Save task nodes from ZooKeeper.

Source:
Parameters:
Name Type Description
task object

The task object which should be persisted to ZooKeeper.