public class NIOCifsConnectionsHandler extends java.lang.Object implements CifsConnectionsHandler, RequestHandlerListener, java.lang.Runnable
Initializes the configured CIFS session handlers and listens for incoming requests using a single thread.
Modifier and Type | Class and Description |
---|---|
protected class |
NIOCifsConnectionsHandler.IdleSessionReaper
Idle Session Reaper Thread Class
|
Modifier and Type | Field and Description |
---|---|
static int |
SessionSocketsPerHandler |
Constructor and Description |
---|
NIOCifsConnectionsHandler()
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 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()
run
in interface java.lang.Runnable
public final void setDebug(boolean ena)
ena
- booleanpublic void requestHandlerEmpty(RequestHandler reqHandler)
requestHandlerEmpty
in interface RequestHandlerListener
reqHandler
- RequestHandlerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.