Class PeerServerReader

  • All Implemented Interfaces:
    Runnable

    public class PeerServerReader
    extends DirectoryThread
    This class implement the part of the replicationServer that is reading the connection from the LDAP servers to get all the updates that were done on this replica and forward them to other servers. A single thread is dedicated to this work. It waits in a blocking mode on the connection from the LDAP server and upon receiving an update puts in into the replicationServer cache from where the other servers will grab it.
    • Constructor Detail

      • PeerServerReader

        public PeerServerReader​(Session session,
                                org.opends.server.replication.server.PeerServer peerServer)
        Constructor for the LDAP server reader part of the replicationServer.
        Parameters:
        session - The Session from which to read the data.
        peerServer - The peer server for this server reader.
    • Method Detail

      • run

        public void run()
        Create a loop that reads changes and hands them off to be processed.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread