Class 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
    • Method Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object