Enum AuditProcessState
- java.lang.Object
-
- java.lang.Enum<AuditProcessState>
-
- fr.gouv.vitam.scheduler.server.job.auditobject.AuditProcessState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AuditProcessState>
public enum AuditProcessState extends java.lang.Enum<AuditProcessState>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
hasCurrentWorkflowFinishedSuccessfully(StatusCode statusCode, java.lang.Integer tenantId)
abstract boolean
hasLastWorkflowCompleted()
abstract boolean
isWaitingForResponse(StatusCode statusCode)
static AuditProcessState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AuditProcessState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static AuditProcessState
wrap(ProcessState state)
-
-
-
Enum Constant Detail
-
RUNNING
public static final AuditProcessState RUNNING
-
PAUSE
public static final AuditProcessState PAUSE
-
COMPLETED
public static final AuditProcessState COMPLETED
-
-
Method Detail
-
values
public static AuditProcessState[] 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 (AuditProcessState c : AuditProcessState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuditProcessState 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
-
wrap
public static AuditProcessState wrap(ProcessState state)
-
hasCurrentWorkflowFinishedSuccessfully
public abstract boolean hasCurrentWorkflowFinishedSuccessfully(StatusCode statusCode, java.lang.Integer tenantId)
-
hasLastWorkflowCompleted
public abstract boolean hasLastWorkflowCompleted()
-
isWaitingForResponse
public abstract boolean isWaitingForResponse(StatusCode statusCode)
-
-