Package org.alfresco.filesys
Class CIFSServerBean
- java.lang.Object
-
- org.springframework.extensions.surf.util.AbstractLifecycleBean
-
- org.alfresco.filesys.CIFSServerBean
-
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class CIFSServerBean extends org.springframework.extensions.surf.util.AbstractLifecycleBeanCIFS Server ClassCreate and start the various server components required to run the CIFS server.
- Author:
- GKSpencer
-
-
Constructor Summary
Constructors Constructor Description CIFSServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)Class constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.jlan.server.config.ServerConfigurationgetConfiguration()Return the server configurationbooleanisStarted()static voidmain(String[] args)Runs the CIFS server directlyprotected voidonBootstrap(org.springframework.context.ApplicationEvent event)protected voidonShutdown(org.springframework.context.ApplicationEvent event)voidsetSessionListeners(List<org.alfresco.jlan.server.SessionListener> sessionListeners)voidstartServer()Start the CIFS server componentsvoidstopServer()Stop the CIFS server components
-
-
-
Method Detail
-
setSessionListeners
public void setSessionListeners(List<org.alfresco.jlan.server.SessionListener> sessionListeners)
-
getConfiguration
public final org.alfresco.jlan.server.config.ServerConfiguration getConfiguration()
Return the server configuration- Returns:
- ServerConfiguration
-
isStarted
public boolean isStarted()
- Returns:
- Returns true if the server started up without any errors
-
startServer
public final void startServer() throws SocketException, IOExceptionStart the CIFS server components- Throws:
SocketException- If a network error occursIOException- If an I/O error occurs
-
stopServer
public final void stopServer()
Stop the CIFS server components
-
main
public static void main(String[] args)
Runs the CIFS server directly- Parameters:
args- String[]
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
- Specified by:
onBootstrapin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event)
- Specified by:
onShutdownin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
-