io.ray.api.placementgroup.PlacementGroup Maven / Gradle / Ivy
package io.ray.api.placementgroup;
import io.ray.api.id.PlacementGroupId;
import java.util.List;
import java.util.Map;
/**
* A placement group is used to place interdependent actors according to a specific strategy {@link
* PlacementStrategy}. When a placement group is created, the corresponding actor slots and
* resources are preallocated. A placement group consists of one or more bundles plus a specific
* placement strategy.
*/
public interface PlacementGroup {
/**
* Get the id of current placement group.
*
* @return Id of current placement group.
*/
PlacementGroupId getId();
/**
* Get the name of current placement group.
*
* @return Name of current placement group.
*/
String getName();
/**
* Get all bundles which key is resource name and value is resource value.
*
* @return All bundles of current placement group.
*/
List