public final class TwillSpecification.Builder.PlacementPolicySetter extends Object implements TwillSpecification.Builder.MorePlacementPolicies, TwillSpecification.Builder.AfterPlacementPolicy
Constructor and Description |
---|
PlacementPolicySetter() |
Modifier and Type | Method and Description |
---|---|
TwillSpecification.Builder.PlacementPolicySetter |
add(Hosts hosts,
Racks racks,
String runnableName,
String... runnableNames)
Specify hosts and racks for a list of runnables.
|
TwillSpecification.Builder.PlacementPolicySetter |
add(Hosts hosts,
String runnableName,
String... runnableNames)
Specify hosts for a list of runnables.
|
TwillSpecification.Builder.PlacementPolicySetter |
add(Racks racks,
String runnableName,
String... runnableNames)
Specify racks for a list of runnables.
|
TwillSpecification.Builder.PlacementPolicySetter |
add(TwillSpecification.PlacementPolicy.Type type,
String runnableName,
String... runnableNames)
Specify a placement policy for a list of runnables.
|
TwillSpecification.Builder.AfterOrder |
anyOrder()
No particular execution order is needed.
|
TwillSpecification.Builder.FirstOrder |
withOrder()
Start defining execution order.
|
public TwillSpecification.Builder.PlacementPolicySetter add(Hosts hosts, String runnableName, String... runnableNames)
TwillSpecification.Builder.MorePlacementPolicies
add
in interface TwillSpecification.Builder.MorePlacementPolicies
hosts
- Hosts
specifying a set of hosts.runnableName
- a runnable name.runnableNames
- a list of runnable names.public TwillSpecification.Builder.PlacementPolicySetter add(Racks racks, String runnableName, String... runnableNames)
TwillSpecification.Builder.MorePlacementPolicies
add
in interface TwillSpecification.Builder.MorePlacementPolicies
racks
- Racks
specifying a set of racks.runnableName
- a runnable name.runnableNames
- a list of runnable names.public TwillSpecification.Builder.PlacementPolicySetter add(Hosts hosts, Racks racks, String runnableName, String... runnableNames)
TwillSpecification.Builder.MorePlacementPolicies
add
in interface TwillSpecification.Builder.MorePlacementPolicies
hosts
- Hosts
specifying a set of hosts.racks
- Racks
specifying a set of racks.runnableName
- a runnable name.runnableNames
- a list of runnable names.public TwillSpecification.Builder.PlacementPolicySetter add(TwillSpecification.PlacementPolicy.Type type, String runnableName, String... runnableNames)
TwillSpecification.Builder.MorePlacementPolicies
add
in interface TwillSpecification.Builder.MorePlacementPolicies
type
- TwillSpecification.PlacementPolicy.Type
specifying a specific placement policy type.runnableName
- a runnable name.runnableNames
- a list of runnable names.public TwillSpecification.Builder.FirstOrder withOrder()
TwillSpecification.Builder.AfterPlacementPolicy
withOrder
in interface TwillSpecification.Builder.AfterPlacementPolicy
public TwillSpecification.Builder.AfterOrder anyOrder()
TwillSpecification.Builder.AfterPlacementPolicy
anyOrder
in interface TwillSpecification.Builder.AfterPlacementPolicy
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.