private class RSGroupInfoManagerImpl.ServerEventsListenerThread extends Thread implements ServerListener
RSGroupInfoManagerImpl.updateDefaultServers(SortedSet) to update list of known
servers. Notifications about server changes are received by registering ServerListener.
As a listener, we need to return immediately, so the real work of updating the servers is done
asynchronously in this thread.Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private boolean |
changed |
private org.slf4j.Logger |
LOG |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ServerEventsListenerThread() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
serverAdded(ServerName serverName)
The server has joined the cluster.
|
private void |
serverChanged() |
void |
serverRemoved(ServerName serverName)
The server was removed from the cluster.
|
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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwaitingServerEventsListenerThread()
public void serverAdded(ServerName serverName)
ServerListenerserverAdded in interface ServerListenerserverName - The remote servers name.public void serverRemoved(ServerName serverName)
ServerListenerserverRemoved in interface ServerListenerserverName - The remote servers name.private void serverChanged()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.