public interface CheckpointService
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CheckpointService.CheckpointReadChannel |
static interface |
CheckpointService.CheckpointWriteChannel |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(CheckpointService.CheckpointWriteChannel ch)
Dual to commit, it aborts the current checkpoint.
|
CheckpointID |
commit(CheckpointService.CheckpointWriteChannel ch)
Used to finalize and existing checkpoint.
|
CheckpointService.CheckpointWriteChannel |
create()
This method creates a checkpoint and provide a channel to write to it.
|
boolean |
delete(CheckpointID id)
It discards an existing checkpoint identified by its CheckpointID.
|
CheckpointService.CheckpointReadChannel |
open(CheckpointID id)
Given a CheckpointID returns a reading channel.
|
CheckpointService.CheckpointWriteChannel create() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCheckpointID commit(CheckpointService.CheckpointWriteChannel ch) throws IOException, InterruptedException
ch - the CheckpointWriteChannel to commitIOExceptionInterruptedExceptionvoid abort(CheckpointService.CheckpointWriteChannel ch) throws IOException, InterruptedException
ch - the CheckpointWriteChannel to abortIOExceptionInterruptedExceptionCheckpointService.CheckpointReadChannel open(CheckpointID id) throws IOException, InterruptedException
id - CheckpointID for the checkpoint to be openedIOExceptionInterruptedExceptionboolean delete(CheckpointID id) throws IOException, InterruptedException
id - CheckpointID for the checkpoint to be deletedIOExceptionInterruptedExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.