Enum ShardingInfo.ShardingStatus

java.lang.Object
java.lang.Enum<ShardingInfo.ShardingStatus>
org.apache.shardingsphere.elasticjob.lite.lifecycle.domain.ShardingInfo.ShardingStatus
All Implemented Interfaces:
Serializable, Comparable<ShardingInfo.ShardingStatus>, java.lang.constant.Constable
Enclosing class:
ShardingInfo

public static enum ShardingInfo.ShardingStatus extends Enum<ShardingInfo.ShardingStatus>
Job sharding status.
  • Enum Constant Details

  • Method Details

    • values

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

      public static ShardingInfo.ShardingStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getShardingStatus

      public static ShardingInfo.ShardingStatus getShardingStatus(boolean isDisabled, boolean isRunning, boolean isShardingFlag)
      Get sharding status.
      Parameters:
      isDisabled - is disabled
      isRunning - is running
      isShardingFlag - is need to Sharding
      Returns:
      job sharding status