public class CIFSServerBean
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
Create and start the various server components required to run the CIFS server.
| Constructor and Description |
|---|
CIFSServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.jlan.server.config.ServerConfiguration |
getConfiguration()
Return the server configuration
|
boolean |
isStarted() |
static void |
main(java.lang.String[] args)
Runs the CIFS server directly
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
setSessionListeners(java.util.List sessionListeners) |
void |
startServer()
Start the CIFS server components
|
void |
stopServer()
Stop the CIFS server components
|
public CIFSServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
serverConfig - ServerConfigurationpublic void setSessionListeners(java.util.List sessionListeners)
public final org.alfresco.jlan.server.config.ServerConfiguration getConfiguration()
public boolean isStarted()
public final void startServer()
throws java.net.SocketException,
java.io.IOException
java.net.SocketException - If a network error occursjava.io.IOException - If an I/O error occurspublic final void stopServer()
public static void main(java.lang.String[] args)
args - String[]protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.