public interface ReplicationListener
ReplicationListener
provides an interface to listen for
synchronous replications.Modifier and Type | Field and Description |
---|---|
static ReplicationListener |
NOP
Dummy implementation that does nothig.
|
Modifier and Type | Method and Description |
---|---|
void |
onEnd(Agent agent,
ReplicationAction action,
ReplicationResult result)
Called when a replication finished.
|
void |
onError(Agent agent,
ReplicationAction action,
java.lang.Exception error)
Called when an exception during replication occurrs
|
void |
onMessage(ReplicationLog.Level level,
java.lang.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.
|
static final ReplicationListener NOP
void onStart(Agent agent, ReplicationAction action)
agent
- the replication agentaction
- the actionvoid onMessage(ReplicationLog.Level level, java.lang.String message)
level
- the log levelmessage
- the messagevoid onEnd(Agent agent, ReplicationAction action, ReplicationResult result)
agent
- the replication agentaction
- the actionresult
- the replication result.void onError(Agent agent, ReplicationAction action, java.lang.Exception error)
agent
- the replication agentaction
- the actionerror
- the errorCopyright © 2010 - 2020 Adobe. All Rights Reserved