public class GridCheckpointManager extends GridManagerAdapter<CheckpointSpi>
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CLOSED_SESS
Max closed topics to store.
|
ctx, log| Constructor and Description |
|---|
GridCheckpointManager(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Serializable |
loadCheckpoint(GridTaskSessionInternal ses,
String key) |
void |
onSessionEnd(GridTaskSessionInternal ses,
boolean cleanup) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
boolean |
removeCheckpoint(GridTaskSessionInternal ses,
String key) |
boolean |
removeCheckpoint(String key) |
Collection<IgniteUuid> |
sessionIds() |
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
boolean |
storeCheckpoint(GridTaskSessionInternal ses,
String key,
Object state,
ComputeTaskSessionScope scope,
long timeout,
boolean override) |
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, enabled, getSpi, getSpi, getSpis, inject, onAfterSpiStart, onBeforeSpiStart, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, onReconnected, startInfo, startSpi, stopInfo, stopSpi, toString, validateNode, validateNodepublic static final int MAX_CLOSED_SESS
public GridCheckpointManager(GridKernalContext ctx)
ctx - Grid kernal context.public void start()
throws IgniteCheckedException
IgniteCheckedException - Throws in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
cancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public Collection<IgniteUuid> sessionIds()
public boolean storeCheckpoint(GridTaskSessionInternal ses, String key, Object state, ComputeTaskSessionScope scope, long timeout, boolean override) throws IgniteCheckedException
ses - Task session.key - Checkpoint key.state - Checkpoint state to save.scope - Checkpoint scope.timeout - Checkpoint timeout.override - Whether or not override checkpoint if it already exists.true if checkpoint has been actually saved, false otherwise.IgniteCheckedException - Thrown in case of any errors.public boolean removeCheckpoint(String key)
key - Checkpoint key.public boolean removeCheckpoint(GridTaskSessionInternal ses, String key)
ses - Task session.key - Checkpoint key.@Nullable public @Nullable Serializable loadCheckpoint(GridTaskSessionInternal ses, String key) throws IgniteCheckedException
ses - Task session.key - Checkpoint key.IgniteCheckedException - Thrown in case of any errors.public void onSessionEnd(GridTaskSessionInternal ses, boolean cleanup)
ses - Task session.cleanup - Whether cleanup or not.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridManagerAdapter<CheckpointSpi>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023