HDFS-14923. Remove dead code from HealthMonitor. Contributed by Fei Hui.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 7be5508d9b
)
This commit is contained in:
parent
9316ca149f
commit
54d3e212bf
|
@ -135,18 +135,10 @@ public class HealthMonitor {
|
|||
this.callbacks.add(cb);
|
||||
}
|
||||
|
||||
public void removeCallback(Callback cb) {
|
||||
callbacks.remove(cb);
|
||||
}
|
||||
|
||||
public synchronized void addServiceStateCallback(ServiceStateCallback cb) {
|
||||
this.serviceStateCallbacks.add(cb);
|
||||
}
|
||||
|
||||
public synchronized void removeServiceStateCallback(ServiceStateCallback cb) {
|
||||
serviceStateCallbacks.remove(cb);
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
LOG.info("Stopping HealthMonitor thread");
|
||||
shouldRun = false;
|
||||
|
@ -259,10 +251,6 @@ public class HealthMonitor {
|
|||
return state;
|
||||
}
|
||||
|
||||
synchronized HAServiceStatus getLastServiceStatus() {
|
||||
return lastServiceState;
|
||||
}
|
||||
|
||||
boolean isAlive() {
|
||||
return daemon.isAlive();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue