@Private
@Evolving
public class NodeFencer
extends java.lang.Object
The fencing methods are configured as a carriage-return separated list. Each line in the list is of the form:
com.example.foo.MyMethod(arg string)
or
com.example.foo.MyMethod
The class provided must implement the FenceMethod interface.
The fencing methods that ship with Hadoop may also be referred to
by shortened names:
shell(/path/to/some/script.sh args...) (see ShellCommandFencer)
sshfence(...) (see SshFenceByTcpPort)
powershell(...) (see PowerShellFencer)
| Modifier and Type | Method | Description |
|---|---|---|
static NodeFencer |
create(Configuration conf,
java.lang.String confKey) |
|
boolean |
fence(HAServiceTarget fromSvc) |
|
boolean |
fence(HAServiceTarget fromSvc,
HAServiceTarget toSvc) |
public static NodeFencer create(Configuration conf, java.lang.String confKey) throws BadFencingConfigurationException
BadFencingConfigurationExceptionpublic boolean fence(HAServiceTarget fromSvc)
public boolean fence(HAServiceTarget fromSvc, HAServiceTarget toSvc)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.