public class PowerShellFencer extends Configured implements FenceMethod
powershell(NameNode)
The argument passed to this fencer should be a unique string in the
"CommandLine" attribute for the "java.exe" process. For example, the full
path for the Namenode: "org.apache.hadoop.hdfs.server.namenode.NameNode".
The administrator can also shorten the name to "Namenode" if it's unique.| Constructor and Description |
|---|
PowerShellFencer() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkArgs(String argStr)
Verify that the given fencing method's arguments are valid.
|
boolean |
tryFence(HAServiceTarget target,
String argsStr)
Attempt to fence the target node.
|
getConf, setConfpublic void checkArgs(String argStr) throws BadFencingConfigurationException
FenceMethodcheckArgs in interface FenceMethodargStr - the arguments provided in the configuration. This may
be null if the operator did not configure any arguments.BadFencingConfigurationException - if the arguments are invalidpublic boolean tryFence(HAServiceTarget target, String argsStr) throws BadFencingConfigurationException
FenceMethodtryFence in interface FenceMethodtarget - the target of the service to fenceargsStr - the configured arguments, which were checked at startup by
FenceMethod.checkArgs(String)BadFencingConfigurationException - if the configuration was
determined to be invalid only at runtimeCopyright © 2008–2025 Apache Software Foundation. All rights reserved.