Class MonitoringPublisher
- java.lang.Object
-
- java.lang.Thread
-
- org.opends.server.api.DirectoryThread
-
- org.opends.server.replication.server.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opends.server.api.DirectoryThread
DirectoryThread.Factory
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class org.opends.server.api.DirectoryThread
DIRECTORY_THREAD_GROUP
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description MonitoringPublisher(ReplicationServerDomain replicationServerDomain, long period)Create a monitoring publisher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Run method for the monitoring publisher.voidsetPeriod(long period)Sets the period value.voidshutdown()Stops the thread.voidwaitForShutdown()Waits for thread death.-
Methods inherited from class org.opends.server.api.DirectoryThread
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, initiateShutdown, isShutdownInitiated, setAssociatedTask, startWork, stopWork
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
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.
-
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.
-
-