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.setGlobalName(String name)Set the name of a named placement group.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 only accessible from this job by this name viaRay.getPlacementGroup(java.lang.String). If you want to create a named placement group that is accessible from all jobs, usesetGlobalName(java.lang.String)instead.- Parameters:
name- The name of the named placement group.- Returns:
- self
-
setGlobalName
Set the name of a named placement group. This placement group can be accessed by all jobs with this name viaRay.getGlobalPlacementGroup(java.lang.String). If you want to create a named placement group that is only accessible from this job, usesetName(java.lang.String)instead.- 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
-