public class AsyncWinsockCifsConnectionsHandler extends Object implements CifsConnectionsHandler, RequestHandlerListener, Runnable
Initializes the configured CIFS session handlers and listens for incoming requests using a single thread.
Modifier and Type | Class and Description |
---|---|
protected class |
AsyncWinsockCifsConnectionsHandler.IdleSessionReaper
Idle Session Reaper Thread Class
|
Modifier and Type | Field and Description |
---|---|
static int |
SessionSocketsPerHandler |
Constructor and Description |
---|
AsyncWinsockCifsConnectionsHandler()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasDebug()
Check if debug output is enabled
|
void |
initializeHandler(SMBServer srv,
CIFSConfigSection config)
Initialize the connections handler
|
int |
numberOfSessionHandlers()
Return the count of active session handlers
|
void |
requestHandlerEmpty(RequestHandler reqHandler)
Request handler has no sessions to listen for events for
|
void |
run()
Run the connections handler in a seperate thread
|
void |
setDebug(boolean ena)
Enable/disable debug output
|
void |
startHandler()
Start the connection handler thread
|
void |
stopHandler()
Stop the connections handler
|
public static final int SessionSocketsPerHandler
public AsyncWinsockCifsConnectionsHandler()
public final boolean hasDebug()
public int numberOfSessionHandlers()
numberOfSessionHandlers
in interface CifsConnectionsHandler
public final void initializeHandler(SMBServer srv, CIFSConfigSection config) throws InvalidConfigurationException
initializeHandler
in interface CifsConnectionsHandler
srv
- SMBServerconfig
- CIFSConfigSectionInvalidConfigurationException
public final void startHandler()
startHandler
in interface CifsConnectionsHandler
public final void stopHandler()
stopHandler
in interface CifsConnectionsHandler
public void run()
public final void setDebug(boolean ena)
ena
- booleanpublic void requestHandlerEmpty(RequestHandler reqHandler)
requestHandlerEmpty
in interface RequestHandlerListener
reqHandler
- RequestHandlerCopyright © 2005–2017 Alfresco Software. All rights reserved.