|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.epfl.lsr.apex.connection.APEXConnectionListener
The APEXConnectionListener
is a connection listener thread
for a relay, either apex-edge or apex-mesh connection.
Field Summary | |
static int |
CONNECTION_LISTENER
internal state: listening |
static String |
EDGECONNECTION
connection type: edge connection |
static int |
IDLE
internal state: idle |
static String |
MESHCONNECTION
connection type: mesh connection |
Constructor Summary | |
APEXConnectionListener(APEXManager manager,
int port,
String type)
Instantiates a new APEX connection listener which uses the APEXProfile
and listens on the specified port. |
Method Summary | |
boolean |
initListener()
Initiates a listener with the APEXProfile |
void |
run()
State machine for the connection thread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int IDLE
public static final int CONNECTION_LISTENER
public static final String EDGECONNECTION
public static final String MESHCONNECTION
Constructor Detail |
public APEXConnectionListener(APEXManager manager, int port, String type)
Instantiates a new APEX connection listener which uses the APEXProfile
and listens on the specified port.
The listener is initiated by the method initListener()
.
manager
- APEXManager
which accepts call-backs on
incoming messagesport
- the port to open for this connection listenertype
- specifies the type for this APEX connection listener (either
APEXConnectionListener.EDGECONNECTION
or
APEXConnectionListener.MESHCONNECTION
)EDGECONNECTION
,
MESHCONNECTION
Method Detail |
public boolean initListener()
APEXProfile
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |