Class MonitoringPublisher

  • All Implemented Interfaces:
    Runnable

    public 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 period)
        Create a monitoring publisher.
        Parameters:
        replicationServerDomain - The ReplicationServerDomain the monitoring publisher is for.
        period - The sleep time to use
    • 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.
      • waitForShutdown

        public void waitForShutdown()
        Waits for thread death. If not terminated within 2 seconds, forces interruption
      • setPeriod

        public void setPeriod​(long period)
        Sets the period value.
        Parameters:
        period - The new period value.