|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wimpi.telnetd.net.PortListener
Class that implements a PortListener.
If available, it accepts incoming connections and passes them
to an associated ConnectionManager.
ConnectionManager
Method Summary | |
static PortListener |
createPortListener(java.lang.String name,
java.util.Properties settings)
Factory method for a PortListener instance, returns an instance of a PortListener with an associated ConnectionManager. |
ConnectionManager |
getConnectionManager()
Returns reference to ConnectionManager instance associated with the PortListener. |
java.lang.String |
getName()
Returns the name of this PortListener. |
boolean |
isAvailable()
Tests if this PortListener is available. |
void |
run()
Listen constantly to a server socket and handles incoming connections through the associated {a:link ConnectionManager}. |
void |
setAvailable(boolean b)
Sets the availability flag of this PortListener. |
void |
start()
Starts this PortListener. |
void |
stop()
Stops this PortListener, and returns when everything was stopped successfully. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getName()
public boolean isAvailable()
public void setAvailable(boolean b)
b
- true if to be available, false otherwise.public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
ConnectionManager
public ConnectionManager getConnectionManager()
public static PortListener createPortListener(java.lang.String name, java.util.Properties settings) throws BootException
settings
- Properties that contain all configuration information.
BootException
|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |