Top Description Methods
org.crac

public Interface Resource

Known Direct Implementers
org.crac.Context

An interface for receiving checkpoint/restore notifications.

The class that is interested in receiving a checkpoint/restore notification implements this interface, and the object created with that class is registered with a Context, using register method.

Method Summary

Modifier and TypeMethod and Description
public void
afterRestore(Context<? extends Resource>
Context providing notification
context
)

Invoked by a Context as a notification about restore.

public void
beforeCheckpoint(Context<? extends Resource>
Context providing notification
context
)

Invoked by a Context as a notification about checkpoint.

Method Detail

afterRestoreback to summary
public void afterRestore(Context<? extends Resource> context) throws Exception

Invoked by a Context as a notification about restore.

Parameters
context:Context<? extends Resource>

Context providing notification

Exceptions
Exception:
if the method have failed
beforeCheckpointback to summary
public void beforeCheckpoint(Context<? extends Resource> context) throws Exception

Invoked by a Context as a notification about checkpoint.

Parameters
context:Context<? extends Resource>

Context providing notification

Exceptions
Exception:
if the method have failed