|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread com.bbn.openmap.layer.link.LinkListener
public class LinkListener
The Link Listener is the object listening from input from the link server, asynchronously. It is launched within its own thread to handle a specific link layer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected OMGridGenerator |
currentGenerator
The generator to use with LinkGrid objects. |
protected LinkLayer |
layer
The LinkLayer to use to do the work. |
protected LinkManager |
linkManager
The Link to use to talk to the client. |
protected boolean |
listening
Used by outsiders to find out if the listener should be started. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
LinkListener(LinkManager linkManager,
LinkLayer layer,
OMGridGenerator generator)
Create child thread that will handle the client. |
Method Summary | |
---|---|
protected LinkListener |
getListener()
|
boolean |
isListening()
A method used by outsiders to figure out if the LinkListener is listening to the server. |
void |
listen()
listen is a method that listens to the server and responds to requests that are made. |
void |
run()
From the Runnable interface. |
protected void |
setListening(boolean value)
|
void |
startUp()
Use a SwingWorker to launch the listener. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected LinkManager linkManager
protected LinkLayer layer
protected OMGridGenerator currentGenerator
protected boolean listening
Constructor Detail |
---|
public LinkListener(LinkManager linkManager, LinkLayer layer, OMGridGenerator generator)
linkManager
- the LinkManager to communicate over.layer
- the LinkLayer to do the work.generator
- the OMGridGenerator.Method Detail |
---|
public boolean isListening()
protected void setListening(boolean value)
protected LinkListener getListener()
public void startUp()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void listen() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |