pyrasun.eio
Class EPStatus

java.lang.Object
  extended bypyrasun.eio.EPStatus

public class EPStatus
extends java.lang.Object

Endpoint status. Call Endpoint.getState() to get one of these and find out what state your Endpoint seems to believe its in.


Field Summary
static EPStatus ACTIVE
          The endpoint is open fer business, and events are being actively processed against it.
static EPStatus CLOSED
          The endpoint has been closed
static EPStatus LIMBO
          The endpoint is in limbo - it's kinda open but not actively registered anywhere
static EPStatus WAITING
          The endpoint is open fer business is in WAITING inside the Selector event loop.
 
Constructor Summary
EPStatus(int code, java.lang.String name, boolean isActive)
           
 
Method Summary
 boolean equals(java.lang.Object rhs)
           
static EPStatus getByCode(int code)
           
static EPStatus getByName(java.lang.String name)
           
 int getCode()
           
 java.lang.String getName()
           
 boolean isActive()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LIMBO

public static final EPStatus LIMBO
The endpoint is in limbo - it's kinda open but not actively registered anywhere


WAITING

public static final EPStatus WAITING
The endpoint is open fer business is in WAITING inside the Selector event loop.


ACTIVE

public static final EPStatus ACTIVE
The endpoint is open fer business, and events are being actively processed against it.


CLOSED

public static final EPStatus CLOSED
The endpoint has been closed

Constructor Detail

EPStatus

public EPStatus(int code,
                java.lang.String name,
                boolean isActive)
Method Detail

getName

public java.lang.String getName()

getCode

public int getCode()

isActive

public boolean isActive()

getByName

public static EPStatus getByName(java.lang.String name)

getByCode

public static EPStatus getByCode(int code)

equals

public boolean equals(java.lang.Object rhs)

toString

public java.lang.String toString()


Pyrasun EmberIO