Public Member Functions | |
String | getAppExecutionId () |
void | setAppExecutionId (String appExecutionId) |
void | setBaseDir (String baseDir) |
final void | captureCheckpoint () |
MagApplication () | |
MagApplication (String args[]) | |
final void | doStart () |
final void | doYield () |
final void | doResume () |
final void | doResume (Context context) |
abstract void | run () |
Protected Member Functions | |
final boolean | notLastStackInContext () |
final synchronized void | copyStableCheckpoint () |
final boolean | isSwitching () |
final boolean | isStopping () |
final boolean | isRestoring () |
final void | mayCheckpoint () |
Protected Attributes | |
Context | tmpContext |
Context | myContext = null |
boolean | switching = false |
boolean | restoring = false |
boolean | stopping = false |
transient long | lastCheckpointTimestamp |
transient File | baseDir = null |
Private Attributes | |
String | appExecutionId |
Static Private Attributes | |
static final int | SLEEP_TIME = 5000 |
To execute an application on the grid, the user must extend this abstract class
|
|
|
|
|
Retrieve the application's checkpoint. If there isn't a new checkpoint returns null. This method is invoked by the CheckpointCollectorBehaviour
|
|
An internal method used for copy the actual checkpoint from the temporary context (tmpContext) to the 'stable' context attribute (myContext) |
|
|
|
Resumes the execution of an instrumented application, from its own context. |
|
Method invoked by the MagAgent to start the execution of an user application |
|
Stops the execution of an instrumented application, and force it save its own context. Method invoked by the MagAgent in the migration mechanism |
|
|
|
Test done by the instrumented application code, asking if the execution state must be restored from the application context
|
|
Test done by the instrumented application code, asking if the execution must be stopped
|
|
Test done by the instrumented application code, asking if the execution state must be captured
|
|
Force the capture of a checkpoint |
|
Returns 'true' if it isn't the last stackframe in this context object. |
|
Abstract method that forces the user to implement the run() method |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|