Package com.jalios.jstore.jsync
Enum CommitWorkStatus
- java.lang.Object
-
- java.lang.Enum<CommitWorkStatus>
-
- com.jalios.jstore.jsync.CommitWorkStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommitWorkStatus>
public enum CommitWorkStatus extends java.lang.Enum<CommitWorkStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_COUNT_LINE
DISK_SPACE
FILE_PERMISSION
LEADER_COMMIT_FAILED
MISSING_REPLICA
NOT_LEADER
NOT_LOG_DIR
NOTHING_TO_COMMIT
REPLICA_CHECK_FAILED
REPLICA_COMMIT_FAILED
SUCCESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStatusCode()
static CommitWorkStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommitWorkStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final CommitWorkStatus SUCCESS
-
NOTHING_TO_COMMIT
public static final CommitWorkStatus NOTHING_TO_COMMIT
-
NOT_LEADER
public static final CommitWorkStatus NOT_LEADER
-
NOT_LOG_DIR
public static final CommitWorkStatus NOT_LOG_DIR
-
MISSING_REPLICA
public static final CommitWorkStatus MISSING_REPLICA
-
DISK_SPACE
public static final CommitWorkStatus DISK_SPACE
-
FILE_PERMISSION
public static final CommitWorkStatus FILE_PERMISSION
-
BAD_COUNT_LINE
public static final CommitWorkStatus BAD_COUNT_LINE
-
REPLICA_CHECK_FAILED
public static final CommitWorkStatus REPLICA_CHECK_FAILED
-
REPLICA_COMMIT_FAILED
public static final CommitWorkStatus REPLICA_COMMIT_FAILED
-
LEADER_COMMIT_FAILED
public static final CommitWorkStatus LEADER_COMMIT_FAILED
-
-
Method Detail
-
values
public static CommitWorkStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommitWorkStatus c : CommitWorkStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommitWorkStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getStatusCode
public int getStatusCode()
-
-