Package jade.core.mobility
Class AgentMobilityProxy
- java.lang.Object
-
- jade.core.SliceProxy
-
- jade.core.mobility.AgentMobilityProxy
-
- All Implemented Interfaces:
AgentMobilitySlice,Service.Slice,Serializable,Serializable
public class AgentMobilityProxy extends SliceProxy implements AgentMobilitySlice
The remote proxy for the JADE kernel-level service managing the mobility-related agent life cycle: migration and clonation.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface jade.core.mobility.AgentMobilitySlice
H_CLONECODELOCATORENTRY, H_CLONEDAGENT, H_COPYAGENT, H_CREATEAGENT, H_FETCHCLASSFILE, H_HANDLETRANSFERRESULT, H_MOVEAGENT, H_PREPARE, H_REMOVECODELOCATORENTRY, H_TRANSFERIDENTITY, NAME
-
-
Constructor Summary
Constructors Constructor Description AgentMobilityProxy()
-
Method Summary
All Methods Instance Methods Concrete 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 class jade.core.SliceProxy
getNode, getService, serve, setNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Method Detail
-
createAgent
public void createAgent(AID agentID, byte[] serializedInstance, String classSiteName, boolean isCloned, boolean startIt) throws IMTPException, ServiceException, NotFoundException, NameClashException, JADESecurityException
- Specified by:
createAgentin interfaceAgentMobilitySlice- Throws:
IMTPExceptionServiceExceptionNotFoundExceptionNameClashExceptionJADESecurityException
-
fetchClassFile
public byte[] fetchClassFile(String className, String agentName) throws IMTPException, ClassNotFoundException
- Specified by:
fetchClassFilein interfaceAgentMobilitySlice- Throws:
IMTPExceptionClassNotFoundException
-
moveAgent
public void moveAgent(AID agentID, Location where) throws IMTPException, NotFoundException
- Specified by:
moveAgentin interfaceAgentMobilitySlice- Throws:
IMTPExceptionNotFoundException
-
copyAgent
public void copyAgent(AID agentID, Location where, String newName) throws IMTPException, NotFoundException
- Specified by:
copyAgentin interfaceAgentMobilitySlice- Throws:
IMTPExceptionNotFoundException
-
prepare
public boolean prepare() throws IMTPException- Specified by:
preparein interfaceAgentMobilitySlice- Throws:
IMTPException
-
transferIdentity
public boolean transferIdentity(AID agentID, Location src, Location dest) throws IMTPException, NotFoundException
- Specified by:
transferIdentityin interfaceAgentMobilitySlice- Throws:
IMTPExceptionNotFoundException
-
handleTransferResult
public void handleTransferResult(AID agentID, boolean result, List messages) throws IMTPException, NotFoundException
- Specified by:
handleTransferResultin interfaceAgentMobilitySlice- Throws:
IMTPExceptionNotFoundException
-
clonedAgent
public void clonedAgent(AID agentID, ContainerID cid, Credentials creds) throws IMTPException, JADESecurityException, NotFoundException, NameClashException
- Specified by:
clonedAgentin interfaceAgentMobilitySlice- Throws:
IMTPExceptionJADESecurityExceptionNotFoundExceptionNameClashException
-
cloneCodeLocatorEntry
public void cloneCodeLocatorEntry(AID oldAgentID, AID newAgentID) throws IMTPException, NotFoundException
- Specified by:
cloneCodeLocatorEntryin interfaceAgentMobilitySlice- Throws:
IMTPExceptionNotFoundException
-
removeCodeLocatorEntry
public void removeCodeLocatorEntry(AID name) throws IMTPException, NotFoundException
- Specified by:
removeCodeLocatorEntryin interfaceAgentMobilitySlice- Throws:
IMTPExceptionNotFoundException
-
-