@InterfaceAudience.Private public class HealthMonitor extends Object
Callback
interface.Modifier and Type | Class and Description |
---|---|
static class |
HealthMonitor.State |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(org.apache.hadoop.ha.HealthMonitor.Callback cb) |
protected HAServiceProtocol |
createProxy()
Connect to the service to be monitored.
|
HAServiceProtocol |
getProxy() |
void |
removeCallback(org.apache.hadoop.ha.HealthMonitor.Callback cb) |
void |
shutdown() |
public void addCallback(org.apache.hadoop.ha.HealthMonitor.Callback cb)
public void removeCallback(org.apache.hadoop.ha.HealthMonitor.Callback cb)
public void shutdown()
public HAServiceProtocol getProxy()
protected HAServiceProtocol createProxy() throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.