Interface ReplicationListener


public interface ReplicationListener
ReplicationListener provides an interface to listen for synchronous replications.
  • Field Details

  • Method Details

    • onStart

      void onStart(Agent agent, ReplicationAction action)
      Called when the replication (transport) is about to begin, i.e. before the transport handler is called.
      Parameters:
      agent - the replication agent
      action - the action
    • onMessage

      void onMessage(ReplicationLog.Level level, String message)
      Called when a message to the replication log is written.
      Parameters:
      level - the log level
      message - the message
    • onEnd

      void onEnd(Agent agent, ReplicationAction action, ReplicationResult result)
      Called when a replication finished.
      Parameters:
      agent - the replication agent
      action - the action
      result - the replication result.
    • onError

      void onError(Agent agent, ReplicationAction action, Exception error)
      Called when an exception during replication occurrs
      Parameters:
      agent - the replication agent
      action - the action
      error - the error