Public Member Functions | |
byte[] | marshall (Object obj) throws Exception |
-------------------- public methods | |
Object | unmarshall (byte b[]) throws Exception |
void | addBehaviour (Behaviour b) |
void | migrateAgent (String location) |
void | terminateAgent () |
void | redirectOutput (Thread th, String appReposId) |
void | disableRedirectOutput (Thread th) |
void | appFinished (String appExecutionId) |
void | errorMessage (String appReposId, String message) |
String | getAhIor () |
void | setAhIor (String ahIor) |
String | getAppArgs () |
void | setAppArgs (String appArgs) |
String | getAppConstraints () |
void | setAppConstraints (String appConstraints) |
MagApplication | getApplication () |
void | setApplication (MagApplication application) |
String | getAppMainRequestId () |
void | setAppMainRequestId (String appMainRequestId) |
String | getAppName () |
void | setAppName (String appName) |
String | getAppNodeRequestId () |
void | setAppNodeRequestId (String appNodeRequestId) |
String | getAppPreferences () |
void | setAppPreferences (String appPreferences) |
String | getAppReposId () |
void | setAppReposId (String appReposId) |
Object[] | getArgs () |
void | setArgs (Object[] args) |
String | getAsctIor () |
void | setAsctIor (String asctIor) |
String | getAppExecutionId () |
void | setAppExecutionId (String appExecutionId) |
ArrayList | getInputFiles () |
void | setInputFiles (ArrayList inputFiles) |
ArrayList | getOutputFiles () |
void | setOutputFiles (ArrayList outputFiles) |
String | getSource () |
void | setSource (String source) |
String | getUserName () |
void | setUserName (String userName) |
Boolean | getRecovering () |
void | setRecovering (Boolean recovering) |
byte[] | getSerializedApplication () |
void | setSerializedApplication (byte[] serializedApplication) |
byte[] | getCompressedCheckpoint () |
void | setCompressedCheckpoint (byte[] compressedCheckpoint) |
Protected Member Functions | |
void | setup () |
-------------------- protected methods | |
void | beforeMove () |
void | afterMove () |
void | takeDown () |
Private Member Functions | |
Behaviour | registerAgent () |
-------------------- private methods | |
ExecutionInfo | createExecutionInfo () |
void | saveToFile (String directory, String fileName, byte b[]) throws Exception |
void | collectArguments () |
void | clearBehaviourList () |
byte[] | suspendAppExecution () |
Private Attributes | |
AID | emaAID = null |
-------------------- fields | |
AID | stableStorageAID = null |
Codec | codec = new LEAPCodec() |
Ontology | ontology = MAGOntology.getInstance() |
String | appReposId = "" |
String | appName = "" |
String | ahIor = "" |
String | appExecutionId = "" |
String | appArgs = "" |
String | appMainRequestId = "" |
String | appNodeRequestId = "" |
String | asctIor = "" |
ArrayList | outputFiles |
ArrayList | inputFiles |
String | appConstraints = "" |
String | appPreferences = "" |
String | userName = "" |
String | source = "" |
HashSet | behaviourSet = null |
byte | serializedApplication [] |
transient byte | compressedCheckpoint [] = null |
transient Boolean | recovering = new Boolean (false) |
transient AgentHandlerImpl | agentHandler = null |
transient MagApplication | application = null |
transient Object[] | args = null |
transient ThreadAwareOutputStream | out = null |
transient ThreadAwareOutputStream | err = null |
This mobile agent execute applications in the grid. For each application we have an agent associated with it. MagAgent is also responsible for migrate its application if the user requests the release of the node, and notifies the AgentHandler about the finish of application execution
|
|
|
Method invoked on the agent after the end of migration process |
|
Redirect the output of an application to its own output files
|
|
|
|
|
|
Get the arguments passed to the agent and saves them in private attributes |
|
|
|
Redirect the output of an application to its own output files
|
|
Returns an error message to an user
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------- public methods Serializes an object
|
|
Migrate this agent and its application
|
|
Redirect the output of an application to its own output files
|
|
-------------------- private methods Register the agent in the AgentMap |
|
Saves a serialized bytecode on filesystem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------- protected methods First method invoked by the mobile agent plataform on an agent when it is instantiated |
|
|
|
|
|
This method is invoked before the agent's death |
|
|
|
Deserializes an object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------- fields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|