|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
ucr.core.ConnectionManager
Base class for connection managers
Field Summary | |
protected ConnectionData |
connectionData
|
protected ConnectionList |
connectionList
|
private int |
desiredConnectionCount
|
protected Router |
router
|
protected boolean |
shutdown
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
(package private) |
ConnectionManager(Router router,
ConnectionList connectionList,
ConnectionData connectionData)
Connection management constructor |
Method Summary | |
(package private) ConnectionList |
getConnectionList()
Gets the list of connections |
(package private) int |
getDesiredConnectionCount()
Get the desired connection count |
(package private) boolean |
isShutdown()
Check if the manager is shut down |
(package private) void |
setDesiredConnectionCount(int count)
Set the desired connection count |
(package private) void |
shutdown()
Closes all connections and stops processing |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int desiredConnectionCount
protected ConnectionList connectionList
protected boolean shutdown
protected ConnectionData connectionData
protected Router router
Constructor Detail |
ConnectionManager(Router router, ConnectionList connectionList, ConnectionData connectionData)
router
- message routerconnectionList
- list of active connectionsconnectionData
- connection data for the systemMethod Detail |
void setDesiredConnectionCount(int count)
count
- desired connection countint getDesiredConnectionCount()
void shutdown()
boolean isShutdown()
ConnectionList getConnectionList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |