public static class

JobConfig.Builder

extends Object
java.lang.Object
   ↳ org.apache.helix.task.JobConfig.Builder

Class Overview

A builder for JobConfig. Validates the configurations.

Summary

Public Constructors
JobConfig.Builder()
Public Methods
JobConfig.Builder addTaskConfigMap(Map<StringTaskConfig> taskConfigMap)
JobConfig.Builder addTaskConfigs(List<TaskConfig> taskConfigs)
JobConfig build()
static JobConfig.Builder fromMap(Map<StringString> cfg)
Convenience method to build a JobConfig from a Map&lt;String, String&gt;.
JobConfig.Builder setCommand(String v)
JobConfig.Builder setFailureThreshold(int v)
JobConfig.Builder setJobCommandConfigMap(Map<StringString> v)
JobConfig.Builder setMaxAttemptsPerTask(int v)
JobConfig.Builder setMaxForcedReassignmentsPerTask(int v)
JobConfig.Builder setNumConcurrentTasksPerInstance(int v)
JobConfig.Builder setTargetPartitionStates(Set<String> v)
JobConfig.Builder setTargetPartitions(List<String> v)
JobConfig.Builder setTargetResource(String v)
JobConfig.Builder setTaskRetryDelay(long v)
JobConfig.Builder setTimeoutPerTask(long v)
JobConfig.Builder setWorkflow(String v)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JobConfig.Builder ()

Public Methods

public JobConfig.Builder addTaskConfigMap (Map<StringTaskConfig> taskConfigMap)

public JobConfig.Builder addTaskConfigs (List<TaskConfig> taskConfigs)

public JobConfig build ()

public static JobConfig.Builder fromMap (Map<StringString> cfg)

Convenience method to build a JobConfig from a Map&lt;String, String&gt;.

Parameters
cfg A map of property names to their string representations.
Returns

public JobConfig.Builder setCommand (String v)

public JobConfig.Builder setFailureThreshold (int v)

public JobConfig.Builder setJobCommandConfigMap (Map<StringString> v)

public JobConfig.Builder setMaxAttemptsPerTask (int v)

public JobConfig.Builder setMaxForcedReassignmentsPerTask (int v)

public JobConfig.Builder setNumConcurrentTasksPerInstance (int v)

public JobConfig.Builder setTargetPartitionStates (Set<String> v)

public JobConfig.Builder setTargetPartitions (List<String> v)

public JobConfig.Builder setTargetResource (String v)

public JobConfig.Builder setTaskRetryDelay (long v)

public JobConfig.Builder setTimeoutPerTask (long v)

public JobConfig.Builder setWorkflow (String v)