Package io.ray.api.options
Class PlacementGroupCreationOptions.Builder
java.lang.Object
io.ray.api.options.PlacementGroupCreationOptions.Builder
- Enclosing class:
- PlacementGroupCreationOptions
The inner class for building PlacementGroupCreationOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setBundles(List<Map<String,Double>> bundles)Set the Pre-allocated resource list.Set the name of a named placement group.setStrategy(PlacementStrategy strategy)Set the placement strategy used to control the placement relationship between bundles.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setName
Set the name of a named placement group. This named placement group is accessible in this namespace by this name viaRay#getPlacementGroup(java.lang.String)or in other namespaces viaPlacementGroups#getPlacementGroup(java.lang.String, java.lang.String).- Parameters:
name- The name of the named placement group.- Returns:
- self
-
setBundles
Set the Pre-allocated resource list. Bundle is a collection of resources used to reserve resources on the raylet side.- Parameters:
bundles- The Pre-allocated resource list.- Returns:
- self
-
setStrategy
Set the placement strategy used to control the placement relationship between bundles. More details refer toPlacementStrategy- Parameters:
strategy- The placement strategy between bundles.- Returns:
- self
-
build
-