public static enum DeviceAgentEvent.Type extends Enum<DeviceAgentEvent.Type>
Enum Constant and Description |
---|
CHANNEL_CLOSED
Signifies that a channel between the agent and the device is closed
and the two cannot communicate.
|
CHANNEL_ERROR
Signifies that a channel error has been detected.
|
CHANNEL_OPEN
Signifies that a channel between the agent and the device is open and
the two can communicate.
|
NOT_MASTER
Signifies that the agent tried to perform some operations on the
device that requires master role.
|
ROLE_MASTER
Signifies that the agent has acquired master role.
|
ROLE_NONE
Signifies that the agent doesn't have any valid mastership role for
the device.
|
ROLE_STANDBY
Signifies that the agent has acquired standby/slave mastership role.
|
Modifier and Type | Method and Description |
---|---|
static DeviceAgentEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceAgentEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceAgentEvent.Type CHANNEL_OPEN
public static final DeviceAgentEvent.Type CHANNEL_CLOSED
public static final DeviceAgentEvent.Type CHANNEL_ERROR
public static final DeviceAgentEvent.Type ROLE_MASTER
public static final DeviceAgentEvent.Type ROLE_STANDBY
public static final DeviceAgentEvent.Type ROLE_NONE
public static final DeviceAgentEvent.Type NOT_MASTER
public static DeviceAgentEvent.Type[] values()
for (DeviceAgentEvent.Type c : DeviceAgentEvent.Type.values()) System.out.println(c);
public static DeviceAgentEvent.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null