Package com.day.cq.replication
Interface ReplicationListener
-
public interface ReplicationListenerReplicationListenerprovides an interface to listen for synchronous replications.
-
-
Field Summary
Fields Modifier and Type Field Description static ReplicationListenerNOPDummy implementation that does nothig.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEnd(Agent agent, ReplicationAction action, ReplicationResult result)Called when a replication finished.voidonError(Agent agent, ReplicationAction action, java.lang.Exception error)Called when an exception during replication occurrsvoidonMessage(ReplicationLog.Level level, java.lang.String message)Called when a message to the replication log is written.voidonStart(Agent agent, ReplicationAction action)Called when the replication (transport) is about to begin, i.e.
-
-
-
Field Detail
-
NOP
static final ReplicationListener NOP
Dummy implementation that does nothig.
-
-
Method Detail
-
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 agentaction- the action
-
onMessage
void onMessage(ReplicationLog.Level level, java.lang.String message)
Called when a message to the replication log is written.- Parameters:
level- the log levelmessage- the message
-
onEnd
void onEnd(Agent agent, ReplicationAction action, ReplicationResult result)
Called when a replication finished.- Parameters:
agent- the replication agentaction- the actionresult- the replication result.
-
onError
void onError(Agent agent, ReplicationAction action, java.lang.Exception error)
Called when an exception during replication occurrs- Parameters:
agent- the replication agentaction- the actionerror- the error
-
-