public final class ExternalPlatformConfig extends Object implements Serializable
Does not do any verification of arguments, MBean will do this.
Immutable, use a builder to create modified configs.
Modifier and Type | Class and Description |
---|---|
static class |
ExternalPlatformConfig.Builder |
Modifier and Type | Field and Description |
---|---|
static ExternalPlatformConfig |
DEFAULT_CONFIG |
static long |
DEFAULT_DETECT_INTERVAL |
static float |
DEFAULT_DETECT_THRESHOLD |
static int |
DEFAULT_RETRY_ATTEMPTS |
static long |
DEFAULT_RETRY_INTERVAL |
static ExternalAddressSelectionMode |
DEFAULT_SELECTION_MODE |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getDetectInterval()
Gets the failure detection interval, the interval between checking the proportion of failed calls
for each of this platform's active addresses.
|
float |
getDetectThreshold()
Get the failure detecttion threshold.
|
int |
getRetryAttempts()
The number of consecutive retry attempts that must succeed before the SIS
will begin using a failed address again.
|
long |
getRetryInterval()
Gets the retry interval, the interval between attempts to retry a failed address,
to see if it has recovered.
|
ExternalAddressSelectionMode |
getSelectionMode()
Get the
ExternalAddressSelectionMode for this platform |
int |
hashCode() |
static ExternalPlatformConfig.Builder |
newBuilder() |
ExternalPlatformConfig.Builder |
toBuilder() |
String |
toString() |
public static final ExternalAddressSelectionMode DEFAULT_SELECTION_MODE
public static final long DEFAULT_DETECT_INTERVAL
public static final float DEFAULT_DETECT_THRESHOLD
public static final long DEFAULT_RETRY_INTERVAL
public static final int DEFAULT_RETRY_ATTEMPTS
public static final ExternalPlatformConfig DEFAULT_CONFIG
public static ExternalPlatformConfig.Builder newBuilder()
public ExternalPlatformConfig.Builder toBuilder()
public ExternalAddressSelectionMode getSelectionMode()
ExternalAddressSelectionMode
for this platformpublic long getDetectInterval()
public float getDetectThreshold()
public long getRetryInterval()
If the retry interval is set to zero, then the SIS will never retry the address,
so a failed address wil stay failed indefinitely. A failed address may be manually reactivated
using the ExternalPlatformManagementMBean.repairSIPAddress(int)
or
ExternalPlatformManagementMBean.repairINAddress(int)
commands.
public int getRetryAttempts()