@InterfaceAudience.Private public class NNHAServiceTarget extends HAServiceTarget
Constructor and Description |
---|
NNHAServiceTarget(Configuration conf,
String nsId,
String nnId) |
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.
|
void |
checkFencingConfigured() |
InetSocketAddress |
getAddress() |
NodeFencer |
getFencer() |
String |
getNameNodeId() |
String |
getNameServiceId() |
InetSocketAddress |
getZKFCAddress() |
boolean |
isAutoFailoverEnabled() |
String |
toString() |
getFencingParameters, getProxy, getZKFCProxy
public NNHAServiceTarget(Configuration conf, String nsId, String nnId)
public InetSocketAddress getAddress()
getAddress
in class HAServiceTarget
public InetSocketAddress getZKFCAddress()
getZKFCAddress
in class HAServiceTarget
public void checkFencingConfigured() throws BadFencingConfigurationException
checkFencingConfigured
in class HAServiceTarget
BadFencingConfigurationException
- if the fencing configuration
appears to be invalid. This is divorced from the above
HAServiceTarget.getFencer()
method so that the configuration can be checked
during the pre-flight phase of failover.public NodeFencer getFencer()
getFencer
in class HAServiceTarget
public String getNameServiceId()
public String getNameNodeId()
protected void addFencingParameters(Map<String,String> ret)
HAServiceTarget
addFencingParameters
in class HAServiceTarget
ret
- map which can be mutated to pass parameters to the fencerpublic boolean isAutoFailoverEnabled()
isAutoFailoverEnabled
in class HAServiceTarget
Copyright © 2013 Apache Software Foundation. All rights reserved.