com.day.cq.replication
Interface ReplicationListener


public interface ReplicationListener

ReplicationListener provides an interface to listen for synchronous replications.


Field Summary
static ReplicationListener NOP
          Dummy implementation that does nothig.
 
Method Summary
 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 occurrs
 void 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 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


Copyright © 2009 Day Management AG. All Rights Reserved.