Package jade.core.mobility
Interface AgentMobilitySlice
-
- All Superinterfaces:
Serializable,Serializable,Service.Slice
- All Known Implementing Classes:
AgentMobilityProxy
public interface AgentMobilitySlice extends Service.Slice
The horizontal interface for the JADE kernel-level service managing the mobility-related agent life cycle: migration and clonation.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
-
-
Field Summary
Fields Modifier and Type Field Description static StringH_CLONECODELOCATORENTRYstatic StringH_CLONEDAGENTstatic StringH_COPYAGENTstatic StringH_CREATEAGENTstatic StringH_FETCHCLASSFILEstatic StringH_HANDLETRANSFERRESULTstatic StringH_MOVEAGENTstatic StringH_PREPAREstatic StringH_REMOVECODELOCATORENTRYstatic StringH_TRANSFERIDENTITYstatic StringNAMEThe name of this service.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloneCodeLocatorEntry(AID oldAgentID, AID newAgentID)voidclonedAgent(AID agentID, ContainerID cid, Credentials creds)voidcopyAgent(AID agentID, Location where, String newName)voidcreateAgent(AID agentID, byte[] serializedInstance, String classSiteName, boolean isCloned, boolean startIt)byte[]fetchClassFile(String className, String agentName)voidhandleTransferResult(AID agentID, boolean result, List messages)voidmoveAgent(AID agentID, Location where)booleanprepare()voidremoveCodeLocatorEntry(AID name)booleantransferIdentity(AID agentID, Location src, Location dest)-
Methods inherited from interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Field Detail
-
NAME
static final String NAME
The name of this service.- See Also:
- Constant Field Values
-
H_CREATEAGENT
static final String H_CREATEAGENT
- See Also:
- Constant Field Values
-
H_FETCHCLASSFILE
static final String H_FETCHCLASSFILE
- See Also:
- Constant Field Values
-
H_MOVEAGENT
static final String H_MOVEAGENT
- See Also:
- Constant Field Values
-
H_COPYAGENT
static final String H_COPYAGENT
- See Also:
- Constant Field Values
-
H_PREPARE
static final String H_PREPARE
- See Also:
- Constant Field Values
-
H_TRANSFERIDENTITY
static final String H_TRANSFERIDENTITY
- See Also:
- Constant Field Values
-
H_HANDLETRANSFERRESULT
static final String H_HANDLETRANSFERRESULT
- See Also:
- Constant Field Values
-
H_CLONEDAGENT
static final String H_CLONEDAGENT
- See Also:
- Constant Field Values
-
H_CLONECODELOCATORENTRY
static final String H_CLONECODELOCATORENTRY
- See Also:
- Constant Field Values
-
H_REMOVECODELOCATORENTRY
static final String H_REMOVECODELOCATORENTRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createAgent
void createAgent(AID agentID, byte[] serializedInstance, String classSiteName, boolean isCloned, boolean startIt) throws IMTPException, ServiceException, NotFoundException, NameClashException, JADESecurityException
-
fetchClassFile
byte[] fetchClassFile(String className, String agentName) throws IMTPException, ClassNotFoundException
- Throws:
IMTPExceptionClassNotFoundException
-
moveAgent
void moveAgent(AID agentID, Location where) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
copyAgent
void copyAgent(AID agentID, Location where, String newName) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
prepare
boolean prepare() throws IMTPException- Throws:
IMTPException
-
transferIdentity
boolean transferIdentity(AID agentID, Location src, Location dest) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
handleTransferResult
void handleTransferResult(AID agentID, boolean result, List messages) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
clonedAgent
void clonedAgent(AID agentID, ContainerID cid, Credentials creds) throws IMTPException, JADESecurityException, NotFoundException, NameClashException
-
cloneCodeLocatorEntry
void cloneCodeLocatorEntry(AID oldAgentID, AID newAgentID) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
removeCodeLocatorEntry
void removeCodeLocatorEntry(AID name) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
-