| Package | Description |
|---|---|
| io.ray.api | |
| io.ray.api.id | |
| io.ray.api.runtime | |
| io.ray.api.runtimecontext |
| Modifier and Type | Field and Description |
|---|---|
ActorId |
Checkpointable.CheckpointContext.actorId
Actor's ID.
|
| Modifier and Type | Method and Description |
|---|---|
ActorId |
BaseActorHandle.getId() |
| Modifier and Type | Method and Description |
|---|---|
void |
Checkpointable.checkpointExpired(ActorId actorId,
UniqueId checkpointId)
Delete an expired checkpoint;
This method will be called when an checkpoint is expired.
|
UniqueId |
Checkpointable.loadCheckpoint(ActorId actorId,
List<Checkpointable.Checkpoint> availableCheckpoints)
Load actor's previous checkpoint, and restore actor's state.
|
void |
Checkpointable.saveCheckpoint(ActorId actorId,
UniqueId checkpointId)
Save a checkpoint to persistent storage.
|
| Constructor and Description |
|---|
CheckpointContext(ActorId actorId,
int numTasksSinceLastCheckpoint,
long timeElapsedMsSinceLastCheckpoint) |
| Modifier and Type | Field and Description |
|---|---|
static ActorId |
ActorId.NIL |
| Modifier and Type | Method and Description |
|---|---|
static ActorId |
ActorId.fromByteBuffer(ByteBuffer bb) |
static ActorId |
ActorId.fromBytes(byte[] bytes) |
static ActorId |
ActorId.fromRandom()
Generate an ActorId with random value.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends BaseActorHandle> |
RayRuntime.getActorHandle(ActorId actorId) |
| Modifier and Type | Method and Description |
|---|---|
ActorId |
RuntimeContext.getCurrentActorId()
Get the current actor ID.
|
Copyright © 2020. All rights reserved.