Enum ExecutionFileState
- java.lang.Object
-
- java.lang.Enum<ExecutionFileState>
-
- com.dtolabs.rundeck.core.execution.logstorage.ExecutionFileState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ExecutionFileState>
public enum ExecutionFileState extends java.lang.Enum<ExecutionFileState>
State of execution file
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVAILABLE
Present locallyAVAILABLE_PARTIAL
Partial data present locallyAVAILABLE_REMOTE
Present on remote storageAVAILABLE_REMOTE_PARTIAL
Partial data on remote storageERROR
Error determining stateNOT_FOUND
PENDING_LOCAL
Pending presence on local storage (being copied)PENDING_REMOTE
Pending presence on remote storageWAITING
Waiting for output
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutionFileState
forFileStates(LogFileState local, LogFileState remote)
Return anExecutionFileState
given a local and remoteLogFileState
static ExecutionFileState
forFileStates(LogFileState local, LogFileState remote, ExecutionFileState notFoundState)
Return anExecutionFileState
given a local and remoteLogFileState
boolean
isAvailableOrPartial()
static ExecutionFileState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ExecutionFileState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_FOUND
public static final ExecutionFileState NOT_FOUND
-
AVAILABLE
public static final ExecutionFileState AVAILABLE
Present locally
-
AVAILABLE_PARTIAL
public static final ExecutionFileState AVAILABLE_PARTIAL
Partial data present locally
-
WAITING
public static final ExecutionFileState WAITING
Waiting for output
-
AVAILABLE_REMOTE
public static final ExecutionFileState AVAILABLE_REMOTE
Present on remote storage
-
AVAILABLE_REMOTE_PARTIAL
public static final ExecutionFileState AVAILABLE_REMOTE_PARTIAL
Partial data on remote storage
-
PENDING_REMOTE
public static final ExecutionFileState PENDING_REMOTE
Pending presence on remote storage
-
PENDING_LOCAL
public static final ExecutionFileState PENDING_LOCAL
Pending presence on local storage (being copied)
-
ERROR
public static final ExecutionFileState ERROR
Error determining state
-
-
Method Detail
-
values
public static ExecutionFileState[] 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 (ExecutionFileState c : ExecutionFileState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExecutionFileState 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
-
isAvailableOrPartial
public boolean isAvailableOrPartial()
- Returns:
- AVAILABLE or AVAILABLE_PARTIAL
-
forFileStates
public static ExecutionFileState forFileStates(LogFileState local, LogFileState remote)
Return anExecutionFileState
given a local and remoteLogFileState
- Parameters:
local
-remote
-
-
forFileStates
public static ExecutionFileState forFileStates(LogFileState local, LogFileState remote, ExecutionFileState notFoundState)
Return anExecutionFileState
given a local and remoteLogFileState
- Parameters:
local
-remote
-notFoundState
- a state to return if both states are NOT_FOUND
-
-