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(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(List<org.alfresco.jlan.server.SessionListener> 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(List<org.alfresco.jlan.server.SessionListener> sessionListeners)
public final org.alfresco.jlan.server.config.ServerConfiguration getConfiguration()
public boolean isStarted()
public final void startServer() throws SocketException, IOException
SocketException
- If a network error occursIOException
- If an I/O error occurspublic final void stopServer()
public static void main(String[] args)
args
- String[]protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
Copyright © 2005–2017 Alfresco Software. All rights reserved.