public class CIFSRequestHandler extends RequestHandler implements java.lang.Runnable
Handles the receiving of CIFS requests for a number of CIFS sessions.
| Constructor and Description |
|---|
CIFSRequestHandler(ThreadRequestPool threadPool,
int maxSess,
int sockTmo,
boolean debug)
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.
|
void |
run()
Run the main processing in a seperate thread
|
void |
setSocketTimeout(int tmo)
Set the client socket timeout, in milliseconds
|
void |
setThreadDebug(boolean dbg)
Enable/disable thread pool debugging
|
equals, fireRequestHandlerEmptyEvent, getListener, getMaximumSessionCount, hasDebug, hasListener, setDebug, setListenerpublic CIFSRequestHandler(ThreadRequestPool threadPool, int maxSess, int sockTmo, boolean debug)
threadPool - ThreadRequestPoolmaxSess - intsockTmo - intdebug - booleanpublic 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 final void setThreadDebug(boolean dbg)
dbg - booleanpublic void run()
run in interface java.lang.Runnablepublic final void closeHandler()
closeHandler in class RequestHandlerprotected final int checkForIdleSessions()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.