Package jade.core.replication
Interface AgentReplicationSlice
-
- All Superinterfaces:
Serializable,Serializable,Service.Slice
- All Known Implementing Classes:
AgentReplicationProxy
public interface AgentReplicationSlice extends Service.Slice
-
-
Field Summary
Fields Modifier and Type Field Description static StringH_ADDREPLICAstatic StringH_GETAGENTLOCATIONstatic StringH_INVOKEAGENTMETHODstatic StringH_MASTERREPLICACHANGEDstatic StringH_NEWVIRTUALAGENTstatic StringH_NOTIFYBECOMEMASTERstatic StringH_NOTIFYREPLICAREMOVEDstatic StringH_REPLICACREATIONREQUESTEDstatic StringH_SYNCHREPLICATIONstatic StringH_VIRTUALAGENTDEAD
-
Method Summary
All Methods Instance Methods Abstract 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 interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Field Detail
-
H_INVOKEAGENTMETHOD
static final String H_INVOKEAGENTMETHOD
- See Also:
- Constant Field Values
-
H_GETAGENTLOCATION
static final String H_GETAGENTLOCATION
- See Also:
- Constant Field Values
-
H_REPLICACREATIONREQUESTED
static final String H_REPLICACREATIONREQUESTED
- See Also:
- Constant Field Values
-
H_SYNCHREPLICATION
static final String H_SYNCHREPLICATION
- See Also:
- Constant Field Values
-
H_NOTIFYBECOMEMASTER
static final String H_NOTIFYBECOMEMASTER
- See Also:
- Constant Field Values
-
H_NOTIFYREPLICAREMOVED
static final String H_NOTIFYREPLICAREMOVED
- See Also:
- Constant Field Values
-
H_NEWVIRTUALAGENT
static final String H_NEWVIRTUALAGENT
- See Also:
- Constant Field Values
-
H_ADDREPLICA
static final String H_ADDREPLICA
- See Also:
- Constant Field Values
-
H_MASTERREPLICACHANGED
static final String H_MASTERREPLICACHANGED
- See Also:
- Constant Field Values
-
H_VIRTUALAGENTDEAD
static final String H_VIRTUALAGENTDEAD
- See Also:
- Constant Field Values
-
-
Method Detail
-
invokeAgentMethod
void invokeAgentMethod(AID aid, String methodName, Object[] arguments) throws IMTPException, ServiceException, NotFoundException
-
getAgentLocation
ContainerID getAgentLocation(AID aid) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
replicaCreationRequested
void replicaCreationRequested(AID virtualAid, AID replicaAid) throws IMTPException
- Throws:
IMTPException
-
synchReplication
void synchReplication(jade.core.replication.GlobalReplicationInfo info) throws IMTPException- Throws:
IMTPException
-
notifyBecomeMaster
void notifyBecomeMaster(AID masterAid) throws IMTPException
- Throws:
IMTPException
-
notifyReplicaRemoved
void notifyReplicaRemoved(AID masterAid, AID removedReplica, Location where) throws IMTPException
- Throws:
IMTPException
-
-