org.opcfoundation.ua.utils.asyncsocket
Enum ServerSocketState

java.lang.Object
  extended by java.lang.Enum<ServerSocketState>
      extended by org.opcfoundation.ua.utils.asyncsocket.ServerSocketState
All Implemented Interfaces:
Serializable, Comparable<ServerSocketState>

public enum ServerSocketState
extends Enum<ServerSocketState>

Servcer Socket states. Initial states: Ready Final states: Closed, Error State transitions: Ready -> Bound -> Closed Ready -> Bound -> Error Ready -> Closed

Author:
Toni Kalajainen (toni.kalajainen@vtt.fi)

Enum Constant Summary
Bound
           
Closed
           
Error
           
Ready
           
 
Field Summary
static EnumSet<ServerSocketState> BOUND_TRANSITION_STATES
           
static EnumSet<ServerSocketState> ERROR_STATES
           
static EnumSet<ServerSocketState> FINAL_STATES
           
static EnumSet<ServerSocketState> INITIAL_STATES
           
static EnumSet<ServerSocketState> OPEN_STATES
           
static EnumSet<ServerSocketState> READY_TRANSITION_STATES
           
 
Method Summary
static ServerSocketState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServerSocketState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Ready

public static final ServerSocketState Ready

Bound

public static final ServerSocketState Bound

Error

public static final ServerSocketState Error

Closed

public static final ServerSocketState Closed
Field Detail

OPEN_STATES

public static final EnumSet<ServerSocketState> OPEN_STATES

ERROR_STATES

public static final EnumSet<ServerSocketState> ERROR_STATES

INITIAL_STATES

public static final EnumSet<ServerSocketState> INITIAL_STATES

FINAL_STATES

public static final EnumSet<ServerSocketState> FINAL_STATES

READY_TRANSITION_STATES

public static final EnumSet<ServerSocketState> READY_TRANSITION_STATES

BOUND_TRANSITION_STATES

public static final EnumSet<ServerSocketState> BOUND_TRANSITION_STATES
Method Detail

values

public static ServerSocketState[] 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 (ServerSocketState c : ServerSocketState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ServerSocketState 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 name
NullPointerException - if the argument is null


Copyright © 2018. All rights reserved.