|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread dist1.acb.common.transport.AbstractConnectionServer
Abstract class for threaded model of socket server. The class services incomming connection.
Field Summary | |
protected java.util.logging.Logger |
log
Logger for object instance |
protected int |
socketPort
An sockt port to listen |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
AbstractConnectionServer(int socketPort,
java.lang.ThreadGroup group)
Constructor for the ConnectionServer object |
Method Summary | |
protected abstract AbstractPersonalManager |
createPersonalManager(java.net.Socket s,
java.lang.ThreadGroup group)
Provides abstraction of a creating a Personal Manager |
protected abstract void |
handleUnrecoverableError(java.lang.Throwable e)
|
void |
run()
Main processing method for the ConnectionServer object |
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, 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 |
protected java.util.logging.Logger log
protected int socketPort
Constructor Detail |
public AbstractConnectionServer(int socketPort, java.lang.ThreadGroup group)
socketPort
- A socket port to listengroup
- Thread group to which current thread will be relatedMethod Detail |
public void run()
protected abstract AbstractPersonalManager createPersonalManager(java.net.Socket s, java.lang.ThreadGroup group)
s
- A socket with connected clientgroup
- Thread group to which current thread will be related
protected abstract void handleUnrecoverableError(java.lang.Throwable e)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |