public class AsyncWinsockCIFSRequestHandler extends RequestHandler implements java.lang.Runnable
Handles the receiving of CIFS requests for a number of CIFS sessions.
| Constructor and Description |
|---|
AsyncWinsockCIFSRequestHandler(NetBIOSName srvName,
int srvLANA,
ThreadRequestPool threadPool,
int maxSess,
int sockTmo)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
checkForIdleSessions()
Check for idle sessions
|
void |
closeHandler()
Close the request handler
|
int |
getCurrentSessionCount()
Return the current session count
|
java.lang.String |
getName()
Return the request handler name
|
int |
getSocketTimeout()
Return the client socket timeout, in milliseconds
|
boolean |
hasFreeSessionSlot()
Check if this request handler has free session slots available
|
void |
queueSessionToHandler(SMBSrvSession sess)
Queue a new session to the request handler, wakeup the request handler thread to register it with the
selector.
|
protected void |
requeueSocketEvent(int sockEvent,
int sockPtr)
Requeue a socket event to the active list
|
void |
run()
Run the main processing in a seperate thread
|
void |
setSocketTimeout(int tmo)
Set the client socket timeout, in milliseconds
|
protected void |
wakeupRequestHandler()
Wakeup the main thread
|
equals, fireRequestHandlerEmptyEvent, getListener, getMaximumSessionCount, hasDebug, hasListener, setDebug, setListenerpublic AsyncWinsockCIFSRequestHandler(NetBIOSName srvName, int srvLANA, ThreadRequestPool threadPool, int maxSess, int sockTmo)
srvName - NetBIOSNamesrvLANA - intthreadPool - ThreadRequestPoolmaxSess - intsockTmo - intpublic final int getCurrentSessionCount()
getCurrentSessionCount in class RequestHandlerpublic final boolean hasFreeSessionSlot()
hasFreeSessionSlot in class RequestHandlerpublic final int getSocketTimeout()
public final void setSocketTimeout(int tmo)
tmo - intpublic final void queueSessionToHandler(SMBSrvSession sess)
queueSessionToHandler in class RequestHandlersess - SMBSrvSessionpublic final java.lang.String getName()
getName in class RequestHandlerpublic void run()
run in interface java.lang.Runnablepublic final void closeHandler()
closeHandler in class RequestHandlerprotected final int checkForIdleSessions()
protected void wakeupRequestHandler()
protected void requeueSocketEvent(int sockEvent,
int sockPtr)
sockEvent - intsockPtr - intCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.