|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.quickserver.net.server.MaxClientHandler
Class that handles excess clients of QuickServer.
This class is used by QuickServer
to create a new thread for
each new client connected after maximum client connection has reached.
This class is responsible to handle excess client sockets.
Will log client ip if Logging level is FINEST.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
MaxClientHandler(java.net.Socket client,
java.lang.String message)
Deprecated. use MaxClientHandler(Socket, String, QuickServer) |
|
MaxClientHandler(java.net.Socket client,
java.lang.String message,
QuickServer quickServer)
Created new MaxClientHandler thread that handles that client. |
Method Summary | |
java.net.Socket |
getSocket()
Returns client socket associated. |
void |
run()
|
void |
setSocket(java.net.Socket socket)
Sets client socket associated. |
java.lang.String |
toString()
Returns the Clients InetAddress if socket not null else will return null |
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 |
Constructor Detail |
public MaxClientHandler(java.net.Socket client, java.lang.String message)
MaxClientHandler(Socket, String, QuickServer)
client
- socket to handlemessage
- reason to be sent to clientpublic MaxClientHandler(java.net.Socket client, java.lang.String message, QuickServer quickServer)
client
- socket to handlemessage
- reason to be sent to clientquickServer
- parent QuickServerMethod Detail |
public void run()
public java.lang.String toString()
public void setSocket(java.net.Socket socket)
public java.net.Socket getSocket()
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |