|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StatusUDT>
com.barchart.udt.StatusUDT
public 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 |
|---|
public static final StatusUDT INIT
public static final StatusUDT OPENED
public static final StatusUDT LISTENING
public static final StatusUDT CONNECTING
public static final StatusUDT CONNECTED
public static final StatusUDT BROKEN
public static final StatusUDT CLOSING
public static final StatusUDT CLOSED
public static final StatusUDT NONEXIST
public static final StatusUDT UNKNOWN
| Field Detail |
|---|
protected static final org.slf4j.Logger log
| Method Detail |
|---|
public static StatusUDT[] values()
for (StatusUDT c : StatusUDT.values()) System.out.println(c);
public static StatusUDT valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getCode()
public static final StatusUDT from(int code)
|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||