diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HealthMonitor.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HealthMonitor.java index d1a858fd85f..5f2c806810b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HealthMonitor.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HealthMonitor.java @@ -134,19 +134,11 @@ public class HealthMonitor { public void addCallback(Callback cb) { 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; @@ -258,11 +250,7 @@ public class HealthMonitor { synchronized State getHealthState() { return state; } - - synchronized HAServiceStatus getLastServiceStatus() { - return lastServiceState; - } - + boolean isAlive() { return daemon.isAlive(); }