Interface AgentReplicationHelper.Listener

  • Enclosing interface:
    AgentReplicationHelper

    public static interface AgentReplicationHelper.Listener
    The 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 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