Class MonitoringPublisher

  • All Implemented Interfaces:
    Runnable

    public final class MonitoringPublisher
    extends DirectoryThread
    This thread regularly publishes monitoring information:
    • it sends monitoring messages regarding the direct topology (directly connected DSs and RSs) to the connected RSs
    • it sends monitoring messages regarding the whole topology (also includes the local RS) to the connected DSs
    Note: as of today, monitoring messages mainly contains the server state of the entities.
    • Constructor Detail

      • MonitoringPublisher

        public MonitoringPublisher​(ReplicationServerDomain replicationServerDomain,
                                   long periodMs)
        Create a monitoring publisher.
        Parameters:
        replicationServerDomain - the ReplicationServerDomain the monitoring publisher is for
        periodMs - the period for sending monitoring messages
    • Method Detail

      • run

        public void run()
        Run method for the monitoring publisher.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • shutdown

        public void shutdown()
        Stops the thread.