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 7c386cfd87..16c30752ed 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 @@ -137,19 +137,11 @@ public enum State { 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; @@ -261,11 +253,7 @@ private synchronized void enterState(State newState) { synchronized State getHealthState() { return state; } - - synchronized HAServiceStatus getLastServiceStatus() { - return lastServiceState; - } - + boolean isAlive() { return daemon.isAlive(); }