Interface ReplicationReceiver


  • public interface ReplicationReceiver
    Handles replication imports.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void receive​(Session session, ReplicationAction action, java.io.InputStream in, long size, java.io.Writer out)
      Receives a durbo replication and performs the respective actions.
      void receive​(Session session, ReplicationAction action, java.io.InputStream in, long size, java.io.Writer out, boolean install)
      Receives a durbo replication and performs the respective actions.
      void receive​(Session session, ReplicationAction action, java.io.InputStream in, long size, java.io.Writer out, boolean install, boolean binaryLess)
      Receives a durbo replication and performs the respective actions.
    • Method Detail

      • receive

        void receive​(Session session,
                     ReplicationAction action,
                     java.io.InputStream in,
                     long size,
                     java.io.Writer out)
              throws ReplicationException,
                     java.io.IOException
        Receives a durbo replication and performs the respective actions.
        Parameters:
        session - repository session to use for importing
        action - the replication action to perform
        in - input stream of the durbo serialized data
        size - size of the input stream
        out - a writer used for response messages
        Throws:
        ReplicationException - of an error occurrs
        java.io.IOException - if an I/O error occurs while writing to the writer
      • receive

        void receive​(Session session,
                     ReplicationAction action,
                     java.io.InputStream in,
                     long size,
                     java.io.Writer out,
                     boolean install)
              throws ReplicationException,
                     java.io.IOException
        Receives a durbo replication and performs the respective actions.
        Parameters:
        session - repository session to use for importing
        action - the replication action to perform
        in - input stream of the durbo serialized data
        size - size of the input stream
        out - a writer used for response messages
        install - if action is ACTIVATE this controls if a package should be also installed
        Throws:
        ReplicationException - of an error occurrs
        java.io.IOException - if an I/O error occurs while writing to the writer
      • receive

        void receive​(Session session,
                     ReplicationAction action,
                     java.io.InputStream in,
                     long size,
                     java.io.Writer out,
                     boolean install,
                     boolean binaryLess)
              throws ReplicationException,
                     java.io.IOException
        Receives a durbo replication and performs the respective actions.
        Parameters:
        session - repository session to use for importing
        action - the replication action to perform
        in - input stream of the durbo serialized data
        size - size of the input stream
        out - a writer used for response messages
        install - if action is ACTIVATE this controls if a package should be also installed
        binaryLess - if receiver has to handle binary less imports
        Throws:
        ReplicationException - of an error occurrs
        java.io.IOException - if an I/O error occurs while writing to the writer