public interface PlacementGroup
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.| 限定符和类型 | 方法和说明 |
|---|---|
List<Map<String,Double>> |
getBundles()
Get all bundles which key is resource name and value is resource value.
|
PlacementGroupId |
getId()
Get the id of current placement group.
|
String |
getName()
Get the name of current placement group.
|
PlacementGroupState |
getState()
Get the state of current placement group.
|
PlacementStrategy |
getStrategy()
Get the strategy of current placement group.
|
boolean |
wait(int timeoutSeconds)
Wait for the placement group to be ready within the specified time.
|
PlacementGroupId getId()
String getName()
List<Map<String,Double>> getBundles()
PlacementStrategy getStrategy()
PlacementGroupState getState()
boolean wait(int timeoutSeconds)
timeoutSeconds - Timeout in seconds.Copyright © 2022. All rights reserved.