Package com.day.cq.replication
Interface ReplicationListener
public interface ReplicationListener
ReplicationListener provides an interface to listen for
synchronous replications.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReplicationListenerDummy implementation that does nothig. -
Method Summary
Modifier and TypeMethodDescriptionvoidonEnd(Agent agent, ReplicationAction action, ReplicationResult result) Called when a replication finished.voidonError(Agent agent, ReplicationAction action, Exception error) Called when an exception during replication occurrsvoidonMessage(ReplicationLog.Level level, 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 Details
-
NOP
Dummy implementation that does nothig.
-
-
Method Details
-
onStart
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
Called when a message to the replication log is written.- Parameters:
level- the log levelmessage- the message
-
onEnd
Called when a replication finished.- Parameters:
agent- the replication agentaction- the actionresult- the replication result.
-
onError
Called when an exception during replication occurrs- Parameters:
agent- the replication agentaction- the actionerror- the error
-