Class ServerReader

  • All Implemented Interfaces:
    Runnable

    public class ServerReader
    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

      • ServerReader

        public ServerReader​(Session session,
                            ServerHandler handler)
        Constructor for the LDAP server reader part of the replicationServer.
        Parameters:
        session - The Session from which to read the data.
        handler - The server handler 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