public abstract static class SandboxState.Condition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SandboxState.Condition |
ACTIONABLE
Met when the sandbox state indicates operations may still be performed
on the sandbox.
|
static SandboxState.Condition |
OPEN
Met when the sandbox state indicates the sandbox is open.
|
static SandboxState.Condition |
PATCHING
Met when the sandbox state indicates the sandbox is being patched.
|
static SandboxState.Condition |
PENDING
Met when the sandbox state indicates the sandbox is pending processing
or user input.
|
static SandboxState.Condition |
PUBLISHED
Met when the sandbox state indicates the sandbox is published.
|
static SandboxState.Condition |
PUBLISHING
Met when the sandbox state indicates the sandbox is in the process of
being published.
|
static SandboxState.Condition |
REFRESHING
Met when the sandbox state indicates the sandbox is in the process of
being refreshed.
|
static SandboxState.Condition |
TERMINATED
Met when the next logical action on the sandbox is to purge it.
|
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
boolean |
eval(SandboxState state)
Returns
true if the condition is met. |
abstract boolean |
eval(java.lang.String state)
Returns
true if the condition is met. |
abstract java.lang.String |
sql(java.lang.String stateColumn)
Returns the condition in SQL such as "='STATE1'", "like 'STATE1%'" or
"in ('STATE1','STATE2')".
|
public static final SandboxState.Condition PENDING
public static final SandboxState.Condition REFRESHING
public static final SandboxState.Condition PUBLISHING
public static final SandboxState.Condition PATCHING
public static final SandboxState.Condition PUBLISHED
public static final SandboxState.Condition OPEN
public static final SandboxState.Condition ACTIONABLE
public static final SandboxState.Condition TERMINATED
public final boolean eval(SandboxState state)
true
if the condition is met.state
- the sandbox state that determines if the condition is mettrue
if the condition is metjava.lang.NullPointerException
- if the given state is nullpublic abstract boolean eval(java.lang.String state)
true
if the condition is met.state
- the sandbox state that determines if the condition is mettrue
if the condition is metjava.lang.NullPointerException
- if the given state is nullpublic abstract java.lang.String sql(java.lang.String stateColumn)
stateColumn
- the alias of the state column