public class ReachabilitySegmentationResolver extends Object implements org.apache.ignite.plugin.segmentation.SegmentationResolver
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_TIMEOUT
Default value for timeout.
|
static int |
DFLT_TTL
Default value for TTL.
|
| Constructor and Description |
|---|
ReachabilitySegmentationResolver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidSegment()
Checks whether segment is valid.
|
void |
setAddress(InetAddress addr)
Sets target address to check reachability of.
|
void |
setAddressAsString(String addr)
Convenient way to set address.
|
void |
setNetworkInterface(NetworkInterface itf)
In case address is bound to several interfaces this method should be used to
explicitly provide necessary interface.
|
void |
setNetworkInterfaceAddress(InetAddress itfAddr)
Sets network interface address to check reachability through.
|
void |
setNetworkInterfaceAddressAsString(String itfAddr)
Convenient way to set network interface address.
|
void |
setTimeout(int timeout)
Sets timeout to use when checking reachability.
|
void |
setTtl(int ttl)
Sets TTL to use when checking reachability.
|
String |
toString() |
public static final int DFLT_TTL
public static final int DFLT_TIMEOUT
public boolean isValidSegment()
throws org.apache.ignite.IgniteCheckedException
When segmentation happens every node ends up in either one of two segments:
segmentation policy set
in configuration.isValidSegment in interface org.apache.ignite.plugin.segmentation.SegmentationResolverTrue if segment is correct, false otherwise.org.apache.ignite.IgniteCheckedException - If an error occurred.public void setAddress(InetAddress addr)
This is required property. Address has to be set using one of the available methods.
addr - Address to check reachability of.setAddressAsString(String)public void setAddressAsString(String addr) throws org.apache.ignite.IgniteCheckedException
This is required property. Address has to be set using one of the available methods.
addr - Address to check reachability of.org.apache.ignite.IgniteCheckedException - If host is unknown.setAddress(InetAddress)public void setNetworkInterfaceAddress(InetAddress itfAddr)
If interface is not specified, check will be performed through any interface available.
itfAddr - Network interface address.setNetworkInterfaceAddressAsString(String),
setNetworkInterface(NetworkInterface)public void setNetworkInterfaceAddressAsString(String itfAddr) throws org.apache.ignite.IgniteCheckedException
If interface is not specified, check will be performed through any interface available.
itfAddr - Network interface address.org.apache.ignite.IgniteCheckedException - If host is unknown.setNetworkInterfaceAddress(InetAddress),
setNetworkInterface(NetworkInterface)public void setNetworkInterface(NetworkInterface itf)
If interface is not specified, check will be performed through any interface available.
itf - Network interface.setNetworkInterfaceAddress(InetAddress),
setNetworkInterfaceAddressAsString(String)public void setTimeout(int timeout)
If not provided, DFLT_TIMEOUT is used.
timeout - Timeout.public void setTtl(int ttl)
If not provided, DFLT_TTL is used.
ttl - TTL.
GridGain Fabric : ver. 7.8.12 Release Date : October 2 2017