Package jade.core.replication
Class AgentReplicationProxy
- java.lang.Object
-
- jade.core.SliceProxy
-
- jade.core.replication.AgentReplicationProxy
-
- All Implemented Interfaces:
AgentReplicationSlice,Service.Slice,Serializable,Serializable
public class AgentReplicationProxy extends SliceProxy implements AgentReplicationSlice
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface jade.core.replication.AgentReplicationSlice
H_ADDREPLICA, H_GETAGENTLOCATION, H_INVOKEAGENTMETHOD, H_MASTERREPLICACHANGED, H_NEWVIRTUALAGENT, H_NOTIFYBECOMEMASTER, H_NOTIFYREPLICAREMOVED, H_REPLICACREATIONREQUESTED, H_SYNCHREPLICATION, H_VIRTUALAGENTDEAD
-
-
Constructor Summary
Constructors Constructor Description AgentReplicationProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerIDgetAgentLocation(AID aid)voidinvokeAgentMethod(AID aid, String methodName, Object[] arguments)voidnotifyBecomeMaster(AID masterAid)voidnotifyReplicaRemoved(AID masterAid, AID removedReplica, Location where)voidreplicaCreationRequested(AID virtualAid, AID replicaAid)voidsynchReplication(jade.core.replication.GlobalReplicationInfo info)-
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
-
invokeAgentMethod
public void invokeAgentMethod(AID aid, String methodName, Object[] arguments) throws IMTPException, ServiceException, NotFoundException
- Specified by:
invokeAgentMethodin interfaceAgentReplicationSlice- Throws:
IMTPExceptionServiceExceptionNotFoundException
-
getAgentLocation
public ContainerID getAgentLocation(AID aid) throws IMTPException, NotFoundException
- Specified by:
getAgentLocationin interfaceAgentReplicationSlice- Throws:
IMTPExceptionNotFoundException
-
replicaCreationRequested
public void replicaCreationRequested(AID virtualAid, AID replicaAid) throws IMTPException
- Specified by:
replicaCreationRequestedin interfaceAgentReplicationSlice- Throws:
IMTPException
-
synchReplication
public void synchReplication(jade.core.replication.GlobalReplicationInfo info) throws IMTPException- Specified by:
synchReplicationin interfaceAgentReplicationSlice- Throws:
IMTPException
-
notifyBecomeMaster
public void notifyBecomeMaster(AID masterAid) throws IMTPException
- Specified by:
notifyBecomeMasterin interfaceAgentReplicationSlice- Throws:
IMTPException
-
notifyReplicaRemoved
public void notifyReplicaRemoved(AID masterAid, AID removedReplica, Location where) throws IMTPException
- Specified by:
notifyReplicaRemovedin interfaceAgentReplicationSlice- Throws:
IMTPException
-
-