Package com.hivemq.adapter.sdk.api.state
Enum ProtocolAdapterState.ConnectionStatus
- java.lang.Object
-
- java.lang.Enum<ProtocolAdapterState.ConnectionStatus>
-
- com.hivemq.adapter.sdk.api.state.ProtocolAdapterState.ConnectionStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ProtocolAdapterState.ConnectionStatus>
- Enclosing interface:
- ProtocolAdapterState
public static enum ProtocolAdapterState.ConnectionStatus extends Enum<ProtocolAdapterState.ConnectionStatus>
Enum for the connection status for this adapter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTEDThe adapter is currently connected to the PLC.DISCONNECTEDThe adapter is currently disconnected from the PLC.ERRORThere is currently an error when trying to connect to the PLC.STATELESSThe adapter does not establish a standing connection to a PLC.UNKNOWNThe connection status for this adapter is currently not known.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProtocolAdapterState.ConnectionStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ProtocolAdapterState.ConnectionStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTED
public static final ProtocolAdapterState.ConnectionStatus CONNECTED
The adapter is currently connected to the PLC.
-
DISCONNECTED
public static final ProtocolAdapterState.ConnectionStatus DISCONNECTED
The adapter is currently disconnected from the PLC.
-
STATELESS
public static final ProtocolAdapterState.ConnectionStatus STATELESS
The adapter does not establish a standing connection to a PLC.
-
UNKNOWN
public static final ProtocolAdapterState.ConnectionStatus UNKNOWN
The connection status for this adapter is currently not known.
-
ERROR
public static final ProtocolAdapterState.ConnectionStatus ERROR
There is currently an error when trying to connect to the PLC.
-
-
Method Detail
-
values
public static ProtocolAdapterState.ConnectionStatus[] 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 (ProtocolAdapterState.ConnectionStatus c : ProtocolAdapterState.ConnectionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolAdapterState.ConnectionStatus valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-