@Beta public enum IntentState extends java.lang.Enum<IntentState>
Enum Constant and Description |
---|
COMPILING
Signifies that the intent is being compiled into installable intents.
|
CORRUPT
Signifies that an intent has failed either installation or withdrawal,
and still hold some or all of its resources.
|
FAILED
Signifies that the intent has failed to be installed and cannot be
satisfied given current network conditions.
|
INSTALL_REQ
Signifies that the intent has been submitted and will start compiling
shortly.
|
INSTALLED
The intent has been successfully installed.
|
INSTALLING
Signifies that the resulting installable intents are being installed
into the network environment.
|
PURGE_REQ
Indicates that the intent should be purged from the database.
|
REALLOCATING
Indicates that the intent is being reallocated in a non-disruptive way
NonDisruptiveConstraint . |
RECOMPILING
Signifies that the intent is being recompiled into installable intents
as an attempt to adapt to an anomaly in the network environment.
|
WITHDRAW_REQ
Indicates that an application has requested that an intent be withdrawn.
|
WITHDRAWING
Indicates that the intent is being withdrawn.
|
WITHDRAWN
Indicates that the intent has been successfully withdrawn.
|
Modifier and Type | Method and Description |
---|---|
static IntentState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IntentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntentState INSTALL_REQ
All intent in the runtime take this state first.
Intents will also pass through this state when they are updated.
public static final IntentState COMPILING
FAILED
state or INSTALLING
state.public static final IntentState INSTALLING
INSTALLED
state or
RECOMPILING
state.public static final IntentState INSTALLED
public static final IntentState RECOMPILING
FAILED
state or INSTALLING
state.
Exit to the FAILED
state may be caused by failure to compile
or by compiling into the same set of installable intents which have
previously failed to be installed.
public static final IntentState WITHDRAW_REQ
public static final IntentState WITHDRAWING
IntentService.withdraw(Intent)
but one with only one outcome,
which is the the intent being placed in the WITHDRAWN
state.public static final IntentState WITHDRAWN
public static final IntentState FAILED
public static final IntentState CORRUPT
public static final IntentState PURGE_REQ
Note: This operation will only be performed if the intent is already in WITHDRAWN or FAILED.
public static final IntentState REALLOCATING
NonDisruptiveConstraint
.
This state can be used to inform other applications that the intent is performing
the reallocation. In particular type of networks this operation can require
a long time. After all the reallocation stages are completed, the intent
returns to the INSTALLED
state. If any of the reallocation stages fails,
the intent is flagged as FAILED
.public static IntentState[] values()
for (IntentState c : IntentState.values()) System.out.println(c);
public static IntentState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null