com.day.cq.replication
Interface TransportHandler


public interface TransportHandler

The TransportHandler is used to transport the replication to the target host. A transport handler is created by a corresponding TransportHandler.


Method Summary
 boolean canHandle(AgentConfig config)
          Returns true if this transport handler can handle the given config.
 ReplicationResult deliver(TransportContext ctx, ReplicationTransaction tx)
          Delivers content to a subscriber.
 ReplicationResult poll(TransportContext ctx, ReplicationTransaction tx, List<ReplicationContent> pages)
          Poll content from a subscriber.
 

Method Detail

canHandle

boolean canHandle(AgentConfig config)
Returns true if this transport handler can handle the given config.

Parameters:
config - the config
Returns:
true if this handler can handle the uri

deliver

ReplicationResult deliver(TransportContext ctx,
                          ReplicationTransaction tx)
                          throws ReplicationException
Delivers content to a subscriber.

Parameters:
ctx - transport context
tx - the replication transaction
Returns:
the replication result of this operation.
Throws:
ReplicationException - if an error occurs.

poll

ReplicationResult poll(TransportContext ctx,
                       ReplicationTransaction tx,
                       List<ReplicationContent> pages)
                       throws ReplicationException
Poll content from a subscriber. This is used in reverse replication scenarios.

Parameters:
ctx - transport context
log - replication log
Returns:
replication content
Throws:
ReplicationException - if an error occurs.


Copyright © 2009 Day Management AG. All Rights Reserved.