Package com.day.cq.replication
Interface ReplicationListener
-
public interface ReplicationListener
ReplicationListener
provides an interface to listen for synchronous replications.
-
-
Field Summary
Fields Modifier and Type Field Description static ReplicationListener
NOP
Dummy implementation that does nothig.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEnd(Agent agent, ReplicationAction action, ReplicationResult result)
Called when a replication finished.void
onError(Agent agent, ReplicationAction action, Exception error)
Called when an exception during replication occurrsvoid
onMessage(ReplicationLog.Level level, String message)
Called when a message to the replication log is written.void
onStart(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, 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, Exception error)
Called when an exception during replication occurrs- Parameters:
agent
- the replication agentaction
- the actionerror
- the error
-
-