Class BackendSetHealth.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • status

        public BackendSetHealth.Builder status​(BackendSetHealth.Status status)
        Overall health status of the backend set.

        **OK:** All backend servers in the backend set return a status of OK.

        **WARNING:** Half or more of the backend set's backend servers return a status of OK and at least one backend server returns a status of WARNING, CRITICAL, or UNKNOWN.

        **CRITICAL:** Fewer than half of the backend set's backend servers return a status of OK.

        **UNKNOWN:** More than half of the backend set's backend servers return a status of UNKNOWN, the system was unable to retrieve metrics, or the backend set does not have a listener attached.

        Parameters:
        status - the value to set
        Returns:
        this builder
      • warningStateBackendNames

        public BackendSetHealth.Builder warningStateBackendNames​(List<String> warningStateBackendNames)
        A list of backend servers that are currently in the WARNING health state.

        The list identifies each backend server by IP address and port.

        Example: 10.0.0.3:8080

        Parameters:
        warningStateBackendNames - the value to set
        Returns:
        this builder
      • criticalStateBackendNames

        public BackendSetHealth.Builder criticalStateBackendNames​(List<String> criticalStateBackendNames)
        A list of backend servers that are currently in the CRITICAL health state.

        The list identifies each backend server by IP address and port.

        Example: 10.0.0.4:8080

        Parameters:
        criticalStateBackendNames - the value to set
        Returns:
        this builder
      • unknownStateBackendNames

        public BackendSetHealth.Builder unknownStateBackendNames​(List<String> unknownStateBackendNames)
        A list of backend servers that are currently in the UNKNOWN health state.

        The list identifies each backend server by IP address and port.

        Example: 10.0.0.5:8080

        Parameters:
        unknownStateBackendNames - the value to set
        Returns:
        this builder
      • totalBackendCount

        public BackendSetHealth.Builder totalBackendCount​(Integer totalBackendCount)
        The total number of backend servers in this backend set.

        Example: 7

        Parameters:
        totalBackendCount - the value to set
        Returns:
        this builder