|
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.ConnectionManager
Class that takes care for active and queued connection. Housekeeping is done also for connections that were just broken off, or exceeded their timeout. Note that instances of this class can only be created by using the factory method createConnectionManager(Properties settings).
| Method Summary | |
static ConnectionManager |
createConnectionManager(java.lang.String name,
java.util.Properties settings)
Factory method for the ConnectionManager. |
ConnectionFilter |
getConnectionFilter()
Gets the active ConnectionFilter instance or returns null if no filter is set. |
void |
makeConnection(java.net.Socket insock)
Method that that tries to connect an incoming request. |
void |
registerClosedConnection(Connection con)
Called by connections that got broken (i.e. |
void |
run()
Periodically does following work: cleaning up died connections. |
void |
setConnectionFilter(ConnectionFilter filter)
Set a connection filter for this ConnectionManager instance. |
void |
start()
Starts this ConnectionManager. |
void |
stop()
Stops this ConnectionManager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void setConnectionFilter(ConnectionFilter filter)
filter - ConnectionFilter instance.public ConnectionFilter getConnectionFilter()
public void start()
public void stop()
public void makeConnection(java.net.Socket insock)
insock - Socket thats representing the incoming connection.public void run()
run in interface java.lang.Runnablepublic void registerClosedConnection(Connection con)
con - the connection that is broken.
public void registerBrokenConnection(Connection con) {
if (!m_BrokenConnections.contains(con) && !m_ClosedConnections.contains(con)) {
log.debug("registerBrokenConnection()::" + con.toString());
m_BrokenConnections.push(con);
}
}//registerBrokenConnection
public static ConnectionManager createConnectionManager(java.lang.String name,
java.util.Properties settings)
throws BootException
settings - Properties containing the settings for this instance.
BootException
|
TelnetD at SF | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||