public class PrimaryServerSwitchoverThread extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
PrimaryServerSwitchoverThread(AgentMain agent) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkNow()
Forces this thread to check now and switch to the primary if needed.
|
void |
run() |
void |
setInterval(long interval)
Sets the time (in milliseconds) that this thread sleeps between checks.
|
void |
stopChecking()
Call this method when you want to stop this thread, which effectively stops it from
checking that the agent is pointing to its primary server.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic PrimaryServerSwitchoverThread(AgentMain agent)
public void setInterval(long interval)
interval - sleep time, in milliseconds (must not be less than 1000)public void stopChecking()
public void checkNow()
sleep interval.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.