|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
dist1.acb.common.transport.AbstractPersonalManager
Abstract class for threaded model of socket server. An instance of the class services one socket client.
| Field Summary | |
protected java.io.ObjectInputStream |
in
|
protected java.util.logging.Logger |
log
Logger for object instance |
protected java.io.ObjectOutputStream |
out
|
protected java.net.Socket |
socket
Socket |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
AbstractPersonalManager(java.net.Socket socket,
java.lang.String name,
java.lang.ThreadGroup group)
Constructor for the AbstractPersonalManager object |
|
| Method Summary | |
protected Response |
handlerOfUnknownClass()
|
protected Response |
handlerOfUnknownRequest(Request request)
|
protected abstract HandlersHive |
installDafaultHandlers()
|
protected void |
process()
Main processing method for the PersonalManager object |
protected Request |
receiveRequest()
|
protected Request |
receiveRequest(int timeout)
|
void |
run()
Main processing method for the PersonalManager object |
protected void |
sendResponse(Response response)
|
protected void |
setHandlers(HandlersHive newHandlers)
Setting new handlers (changing the phase) |
java.lang.String |
toString()
Returns string with an information about the 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, 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 java.io.ObjectInputStream in
protected java.io.ObjectOutputStream out
protected java.net.Socket socket
| Constructor Detail |
public AbstractPersonalManager(java.net.Socket socket,
java.lang.String name,
java.lang.ThreadGroup group)
socket - Connected socketname - A name of the objectgroup - Thread group to which current thread will be related| Method Detail |
public void run()
public java.lang.String toString()
protected void setHandlers(HandlersHive newHandlers)
newHandlers - New set of handlersprotected Response handlerOfUnknownClass()
protected Response handlerOfUnknownRequest(Request request)
protected abstract HandlersHive installDafaultHandlers()
protected void process()
java.lang.InterruptedException - internal exception
protected Request receiveRequest()
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedException
java.io.IOException
protected Request receiveRequest(int timeout)
throws java.lang.InterruptedException,
java.io.IOException
java.lang.InterruptedException
java.io.IOException
protected void sendResponse(Response response)
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||