Enum Class JPPFClientConnectionStatus

java.lang.Object
java.lang.Enum<JPPFClientConnectionStatus>
org.jppf.client.JPPFClientConnectionStatus
All Implemented Interfaces:
Serializable, Comparable<JPPFClientConnectionStatus>, Constable

public enum JPPFClientConnectionStatus extends Enum<JPPFClientConnectionStatus>
Status of the connection between a client and a driver.
Author:
Laurent Cohen
  • Enum Constant Details

  • Method Details

    • values

      public static JPPFClientConnectionStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JPPFClientConnectionStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isOneOf

      public boolean isOneOf(List<JPPFClientConnectionStatus> statuses)
      Determine whether this status is one of those specified as input.
      Parameters:
      statuses - the statuses to check against.
      Returns:
      true if this status is one of those specified as input, false otherwise.
    • isWorkingStatus

      public boolean isWorkingStatus()
      Determine whether this status a working status, that is if it is either ACTIVE or EXECUTING.
      Returns:
      true if this status is a working status, false otherwise.
    • isTerminatedStatus

      public boolean isTerminatedStatus()
      Determine whether this status a working status, that is if it is either FAILED or CLOSED.
      Returns:
      true if this status is a working status, false otherwise.
    • workingStatuses

      public static JPPFClientConnectionStatus[] workingStatuses()
      Get the statuses indicating that a connection is in a working state.
      Returns:
      an array of JPPFClientConnectionStatus enum values.
    • terminatedStatuses

      public static JPPFClientConnectionStatus[] terminatedStatuses()
      Get the statuses indicating that a connection is in a terminated state.
      Returns:
      an array of JPPFClientConnectionStatus enum values.