@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, getZKFCProxypublic NNHAServiceTarget(Configuration conf, String nsId, String nnId)
public InetSocketAddress getAddress()
getAddress in class HAServiceTargetpublic InetSocketAddress getZKFCAddress()
getZKFCAddress in class HAServiceTargetpublic void checkFencingConfigured()
throws BadFencingConfigurationException
checkFencingConfigured in class HAServiceTargetBadFencingConfigurationException - 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 HAServiceTargetpublic String getNameServiceId()
public String getNameNodeId()
protected void addFencingParameters(Map<String,String> ret)
HAServiceTargetaddFencingParameters in class HAServiceTargetret - map which can be mutated to pass parameters to the fencerpublic boolean isAutoFailoverEnabled()
isAutoFailoverEnabled in class HAServiceTargetCopyright © 2013 Apache Software Foundation. All rights reserved.