Package jade.core.replication
Interface AgentReplicationHelper.Listener
-
- Enclosing interface:
- AgentReplicationHelper
public static interface AgentReplicationHelper.ListenerThe interface to be implemented by a replicated agent for the master replica to be notified about replica addition/removal and master replica changes. If a replicated agent does not implement this interface such events will not be notified.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbecomeMaster()Notify a replica that it became the new master replicavoidreplicaAdded(AID replicaAid, Location where)Notify the master replica that a new replica has just been addedvoidreplicaCreationFailed(AID replicaAid, Location where)Notify the master replica that a replica failed to startvoidreplicaRemoved(AID replicaAid, Location where)Notify the master replica that a replica has just been removed
-
-
-
Method Detail
-
replicaAdded
void replicaAdded(AID replicaAid, Location where)
Notify the master replica that a new replica has just been added
-
replicaRemoved
void replicaRemoved(AID replicaAid, Location where)
Notify the master replica that a replica has just been removed
-
replicaCreationFailed
void replicaCreationFailed(AID replicaAid, Location where)
Notify the master replica that a replica failed to start
-
becomeMaster
void becomeMaster()
Notify a replica that it became the new master replica
-
-