public class ReachabilitySegmentationResolver extends Object implements 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.
|
ReachabilitySegmentationResolver |
setAddress(InetAddress addr)
Sets target address to check reachability of.
|
ReachabilitySegmentationResolver |
setAddressAsString(String addr)
Convenient way to set address.
|
ReachabilitySegmentationResolver |
setNetworkInterface(NetworkInterface itf)
In case address is bound to several interfaces this method should be used to
explicitly provide necessary interface.
|
ReachabilitySegmentationResolver |
setNetworkInterfaceAddress(InetAddress itfAddr)
Sets network interface address to check reachability through.
|
ReachabilitySegmentationResolver |
setNetworkInterfaceAddressAsString(String itfAddr)
Convenient way to set network interface address.
|
ReachabilitySegmentationResolver |
setTimeout(int timeout)
Sets timeout to use when checking reachability.
|
ReachabilitySegmentationResolver |
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 IgniteCheckedException
When segmentation happens every node ends up in either one of two segments:
segmentation policy
set
in configuration.isValidSegment
in interface SegmentationResolver
True
if segment is correct, false
otherwise.IgniteCheckedException
- If an error occurred.public ReachabilitySegmentationResolver setAddress(InetAddress addr)
This is required property. Address has to be set using one of the available methods.
addr
- Address to check reachability of.this
for chaining.setAddressAsString(String)
public ReachabilitySegmentationResolver setAddressAsString(String addr) throws IgniteCheckedException
This is required property. Address has to be set using one of the available methods.
addr
- Address to check reachability of.this
for chaining.IgniteCheckedException
- If host is unknown.setAddress(InetAddress)
public ReachabilitySegmentationResolver setNetworkInterfaceAddress(InetAddress itfAddr)
If interface is not specified, check will be performed through any interface available.
itfAddr
- Network interface address.this
for chaining.setNetworkInterfaceAddressAsString(String)
,
setNetworkInterface(NetworkInterface)
public ReachabilitySegmentationResolver setNetworkInterfaceAddressAsString(String itfAddr) throws IgniteCheckedException
If interface is not specified, check will be performed through any interface available.
itfAddr
- Network interface address.this
for chaining.IgniteCheckedException
- If host is unknown.setNetworkInterfaceAddress(InetAddress)
,
setNetworkInterface(NetworkInterface)
public ReachabilitySegmentationResolver setNetworkInterface(NetworkInterface itf)
If interface is not specified, check will be performed through any interface available.
itf
- Network interface.this
for chaining.setNetworkInterfaceAddress(InetAddress)
,
setNetworkInterfaceAddressAsString(String)
public ReachabilitySegmentationResolver setTimeout(int timeout)
If not provided, DFLT_TIMEOUT
is used.
timeout
- Timeout.this
for chaining.public ReachabilitySegmentationResolver setTtl(int ttl)
If not provided, DFLT_TTL
is used.
ttl
- TTL.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024