Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members

agents.stablestorage.StableStorageImpl Class Reference

Inherits agents.stablestorage.StableStorage.

Inheritance diagram for agents.stablestorage.StableStorageImpl:

[legend]
Collaboration diagram for agents.stablestorage.StableStorageImpl:
[legend]
List of all members.

Public Member Functions

boolean saveCheckpoint (String appExecutionId, Checkpoint checkpoint)
byte[] retrieveCheckpoint (String appExecutionId)
boolean removeCheckpoint (String appExecutionId)

Static Public Attributes

static final String checkpointDir = "stablestorage/checkpoints"

Protected Member Functions

void setup ()

Private Member Functions

boolean storeCheckpoint (String appExecutionId, Object checkpoint)

Private Attributes

ContentManager manager = getContentManager()
Codec codec = new LEAPCodec()
Ontology ontology = MAGOntology.getInstance()

Detailed Description

Class StableStorageImpl - Implementation of StableStorage

The StableStorageImpl it acts as a stationary agent who is responsible for storing checkpoints of the applications in execution in the grating. It stores checkpoints supplied by each requested MagAgent and also he returns checkpoints for a MagAgent for one determined application.

Author:
Bysmarck Barros de Sousa


Member Function Documentation

boolean agents.stablestorage.StableStorageImpl.removeCheckpoint String  appExecutionId  ) 
 

This method removes checkpoint information from the application whose Id of execution is appExecutionId

Parameters:
appExecutionId The Id execution
Returns:
boolean If true, success, otherwise, false

Implements agents.stablestorage.StableStorage.

byte [] agents.stablestorage.StableStorageImpl.retrieveCheckpoint String  appExecutionId  ) 
 

This method returns checkpoint information from the application whose Id of execution is appExecutionId

Parameters:
appExecutionId the execution id
Returns:
the checkpoint object as a byte array

Implements agents.stablestorage.StableStorage.

boolean agents.stablestorage.StableStorageImpl.saveCheckpoint String  appExecutionId,
Checkpoint  checkpoint
 

This method is responsable for save checkpoint object

Parameters:
appExecutionId application execution id
checkpoint the object (as a byte array) that contains the checkpoint information
Returns:
boolean true if success, otherwise false

Implements agents.stablestorage.StableStorage.

void agents.stablestorage.StableStorageImpl.setup  )  [protected]
 

boolean agents.stablestorage.StableStorageImpl.storeCheckpoint String  appExecutionId,
Object  checkpoint
[private]
 

This method storage checkpoint information. It associate the Id execution of application with checkpoint object.

Parameters:
appExecutionId The Id execution
checkpoint The object that contains the checkpoint information
Returns:
boolean If true, success, otherwise, false


Member Data Documentation

final String agents.stablestorage.StableStorageImpl.checkpointDir = "stablestorage/checkpoints" [static]
 

Codec agents.stablestorage.StableStorageImpl.codec = new LEAPCodec() [private]
 

ContentManager agents.stablestorage.StableStorageImpl.manager = getContentManager() [private]
 

Ontology agents.stablestorage.StableStorageImpl.ontology = MAGOntology.getInstance() [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Feb 17 09:37:57 2006 for MAG by  doxygen 1.4.4