public class PowerShellFencer extends Configured implements FenceMethod
| 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 address (host:ipcport) 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 © 2019 Apache Software Foundation. All Rights Reserved.