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, setConf
public void checkArgs(String argStr) throws BadFencingConfigurationException
FenceMethod
checkArgs
in interface FenceMethod
argStr
- 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
FenceMethod
tryFence
in interface FenceMethod
target
- 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–2018 Apache Software Foundation. All rights reserved.