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, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
waiting
ServerEventsListenerThread()
public void serverAdded(ServerName serverName)
ServerListener
serverAdded
in interface ServerListener
serverName
- The remote servers name.public void serverRemoved(ServerName serverName)
ServerListener
serverRemoved
in interface ServerListener
serverName
- The remote servers name.private void serverChanged()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.