Package com.day.cq.replication
Interface ReplicationReceiver
public interface ReplicationReceiver
Handles replication imports.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreceive(Session session, ReplicationAction action, InputStream in, long size, Writer out) Receives a durbo replication and performs the respective actions.voidreceive(Session session, ReplicationAction action, InputStream in, long size, Writer out, boolean install) Receives a durbo replication and performs the respective actions.voidreceive(Session session, ReplicationAction action, InputStream in, long size, Writer out, boolean install, boolean binaryLess) Receives a durbo replication and performs the respective actions.
-
Method Details
-
receive
void receive(Session session, ReplicationAction action, InputStream in, long size, Writer out) throws ReplicationException, IOException Receives a durbo replication and performs the respective actions.- Parameters:
session- repository session to use for importingaction- the replication action to performin- input stream of the durbo serialized datasize- size of the input streamout- a writer used for response messages- Throws:
ReplicationException- of an error occurrsIOException- if an I/O error occurs while writing to the writer
-
receive
void receive(Session session, ReplicationAction action, InputStream in, long size, Writer out, boolean install) throws ReplicationException, IOException Receives a durbo replication and performs the respective actions.- Parameters:
session- repository session to use for importingaction- the replication action to performin- input stream of the durbo serialized datasize- size of the input streamout- a writer used for response messagesinstall- if action is ACTIVATE this controls if a package should be also installed- Throws:
ReplicationException- of an error occurrsIOException- if an I/O error occurs while writing to the writer
-
receive
void receive(Session session, ReplicationAction action, InputStream in, long size, Writer out, boolean install, boolean binaryLess) throws ReplicationException, IOException Receives a durbo replication and performs the respective actions.- Parameters:
session- repository session to use for importingaction- the replication action to performin- input stream of the durbo serialized datasize- size of the input streamout- a writer used for response messagesinstall- if action is ACTIVATE this controls if a package should be also installedbinaryLess- if receiver has to handle binary less imports- Throws:
ReplicationException- of an error occurrsIOException- if an I/O error occurs while writing to the writer
-