Class ExternalPlatformConfig
- java.lang.Object
-
- com.opencloud.slee.resources.sis.management.ExternalPlatformConfig
-
- All Implemented Interfaces:
Serializable
public final class ExternalPlatformConfig extends Object implements Serializable
Container for external platform configuration options.Does not do any verification of arguments, MBean will do this.
Immutable, use a builder to create modified configs.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExternalPlatformConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description static ExternalPlatformConfigDEFAULT_CONFIGstatic longDEFAULT_DETECT_INTERVALstatic floatDEFAULT_DETECT_THRESHOLDstatic intDEFAULT_RETRY_ATTEMPTSstatic longDEFAULT_RETRY_INTERVALstatic ExternalAddressSelectionModeDEFAULT_SELECTION_MODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetDetectInterval()Gets the failure detection interval, the interval between checking the proportion of failed calls for each of this platform's active addresses.floatgetDetectThreshold()Get the failure detecttion threshold.intgetRetryAttempts()The number of consecutive retry attempts that must succeed before the SIS will begin using a failed address again.longgetRetryInterval()Gets the retry interval, the interval between attempts to retry a failed address, to see if it has recovered.ExternalAddressSelectionModegetSelectionMode()Get theExternalAddressSelectionModefor this platforminthashCode()static ExternalPlatformConfig.BuildernewBuilder()ExternalPlatformConfig.BuildertoBuilder()StringtoString()
-
-
-
Field Detail
-
DEFAULT_SELECTION_MODE
public static final ExternalAddressSelectionMode DEFAULT_SELECTION_MODE
-
DEFAULT_DETECT_INTERVAL
public static final long DEFAULT_DETECT_INTERVAL
- See Also:
- Constant Field Values
-
DEFAULT_DETECT_THRESHOLD
public static final float DEFAULT_DETECT_THRESHOLD
- See Also:
- Constant Field Values
-
DEFAULT_RETRY_INTERVAL
public static final long DEFAULT_RETRY_INTERVAL
- See Also:
- Constant Field Values
-
DEFAULT_RETRY_ATTEMPTS
public static final int DEFAULT_RETRY_ATTEMPTS
- See Also:
- Constant Field Values
-
DEFAULT_CONFIG
public static final ExternalPlatformConfig DEFAULT_CONFIG
-
-
Method Detail
-
newBuilder
public static ExternalPlatformConfig.Builder newBuilder()
-
toBuilder
public ExternalPlatformConfig.Builder toBuilder()
-
getSelectionMode
public ExternalAddressSelectionMode getSelectionMode()
Get theExternalAddressSelectionModefor this platform- Returns:
- the external address selection mode
-
getDetectInterval
public long getDetectInterval()
Gets the failure detection interval, the interval between checking the proportion of failed calls for each of this platform's active addresses. If the detection interval is zero, address failure detection will be disabled.- Returns:
- the detection interval, in ms.
-
getDetectThreshold
public float getDetectThreshold()
Get the failure detecttion threshold. If the proportion of failed calls seen during a detection interval is greater than or equal to this value, the SIS marks the address as failed.- Returns:
- the maximum proportion of failed calls, between 0 and 1.0.
-
getRetryInterval
public long getRetryInterval()
Gets the retry interval, the interval between attempts to retry a failed address, to see if it has recovered.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.repairAddress(int)command.- Returns:
- the retry interval, in ms.
-
getRetryAttempts
public int getRetryAttempts()
The number of consecutive retry attempts that must succeed before the SIS will begin using a failed address again.- Returns:
- the number of retry attempts.
-
-