| 程序包 | 说明 |
|---|---|
| io.ray.api | |
| io.ray.api.id | |
| io.ray.api.placementgroup | |
| io.ray.api.runtime |
| 限定符和类型 | 方法和说明 |
|---|---|
static PlacementGroup |
PlacementGroups.getPlacementGroup(PlacementGroupId id)
Get a placement group by placement group Id.
|
static void |
PlacementGroups.removePlacementGroup(PlacementGroupId id)
Remove a placement group by id.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static PlacementGroupId |
PlacementGroupId.NIL |
| 限定符和类型 | 方法和说明 |
|---|---|
static PlacementGroupId |
PlacementGroupId.fromByteBuffer(ByteBuffer bb)
Creates a PlacementGroupId from the given ByteBuffer.
|
static PlacementGroupId |
PlacementGroupId.fromBytes(byte[] bytes)
Create a PlacementGroupId instance according to the given bytes.
|
static PlacementGroupId |
PlacementGroupId.fromRandom()
Generate an PlacementGroupId with random value.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PlacementGroupId |
PlacementGroup.getId()
Get the id of current placement group.
|
| 限定符和类型 | 方法和说明 |
|---|---|
PlacementGroup |
RayRuntime.getPlacementGroup(PlacementGroupId id)
Get a placement group by id.
|
void |
RayRuntime.removePlacementGroup(PlacementGroupId id)
Remove a placement group by id.
|
boolean |
RayRuntime.waitPlacementGroupReady(PlacementGroupId id,
int timeoutSeconds)
Wait for the placement group to be ready within the specified time.
|
Copyright © 2022. All rights reserved.