barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt
Enum StatusUDT

java.lang.Object
  extended by java.lang.Enum<StatusUDT>
      extended by com.barchart.udt.StatusUDT
All Implemented Interfaces:
Serializable, Comparable<StatusUDT>

public enum StatusUDT
extends Enum<StatusUDT>

status of underlying UDT native socket as reported by SocketUDT.getStatus0()

keep in sync with udt.h UDTSTATUS enum; see:

"enum UDTSTATUS { INIT = 1, OPENED = 2, LISTENING = 3, CONNECTING = 4, CONNECTED = 5, BROKEN = 6, CLOSING = 7, CLOSED = 8, NONEXIST = 9 };"


Enum Constant Summary
BROKEN
          acceptor socket after close(), connector socket after remote unreachable
CLOSED
          connector socket after close() is done
CLOSING
          connector socket while close() is in progress
CONNECTED
          bound and connected connector socket
CONNECTING
          bound connector socket trying to connect
INIT
          newly created socket; both connector and acceptor
LISTENING
          bound and listening acceptor socket
NONEXIST
          trying to check status on socket that was closed and removed
OPENED
          bound socket; both connector and acceptor
UNKNOWN
          non udt constant, catch-all value
 
Field Summary
protected static org.slf4j.Logger log
           
 
Method Summary
static StatusUDT from(int code)
           
 int getCode()
           
static StatusUDT valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StatusUDT[] 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

INIT

public static final StatusUDT INIT
newly created socket; both connector and acceptor


OPENED

public static final StatusUDT OPENED
bound socket; both connector and acceptor


LISTENING

public static final StatusUDT LISTENING
bound and listening acceptor socket


CONNECTING

public static final StatusUDT CONNECTING
bound connector socket trying to connect


CONNECTED

public static final StatusUDT CONNECTED
bound and connected connector socket


BROKEN

public static final StatusUDT BROKEN
acceptor socket after close(), connector socket after remote unreachable


CLOSING

public static final StatusUDT CLOSING
connector socket while close() is in progress


CLOSED

public static final StatusUDT CLOSED
connector socket after close() is done


NONEXIST

public static final StatusUDT NONEXIST
trying to check status on socket that was closed and removed


UNKNOWN

public static final StatusUDT UNKNOWN
non udt constant, catch-all value

Field Detail

log

protected static final org.slf4j.Logger log
Method Detail

values

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

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

valueOf

public static StatusUDT 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

getCode

public int getCode()

from

public static final StatusUDT from(int code)

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.