@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class HAServiceTarget extends Object
Constructor and Description |
---|
HAServiceTarget() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFencingParameters(Map<String,String> ret)
Hook to allow subclasses to add any parameters they would like to
expose to fencing implementations/scripts.
|
abstract void |
checkFencingConfigured() |
abstract InetSocketAddress |
getAddress() |
abstract org.apache.hadoop.ha.NodeFencer |
getFencer() |
Map<String,String> |
getFencingParameters() |
HAServiceProtocol |
getProxy(Configuration conf,
int timeoutMs) |
abstract InetSocketAddress |
getZKFCAddress() |
org.apache.hadoop.ha.ZKFCProtocol |
getZKFCProxy(Configuration conf,
int timeoutMs) |
boolean |
isAutoFailoverEnabled() |
public HAServiceTarget()
public abstract InetSocketAddress getAddress()
public abstract InetSocketAddress getZKFCAddress()
public abstract org.apache.hadoop.ha.NodeFencer getFencer()
public abstract void checkFencingConfigured() throws BadFencingConfigurationException
BadFencingConfigurationException
- if the fencing configuration
appears to be invalid. This is divorced from the above
getFencer()
method so that the configuration can be checked
during the pre-flight phase of failover.public HAServiceProtocol getProxy(Configuration conf, int timeoutMs) throws IOException
IOException
public org.apache.hadoop.ha.ZKFCProtocol getZKFCProxy(Configuration conf, int timeoutMs) throws IOException
IOException
public final Map<String,String> getFencingParameters()
protected void addFencingParameters(Map<String,String> ret)
ret
- map which can be mutated to pass parameters to the fencerpublic boolean isAutoFailoverEnabled()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.