Class 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.AbstractLifecycleBean
    CIFS Server Class

    Create and start the various server components required to run the CIFS server.

    Author:
    GKSpencer
    • Field Summary

      • Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean

        log
    • Constructor Summary

      Constructors 
      Constructor Description
      CIFSServerBean​(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
      Class constructor
    • Constructor Detail

      • CIFSServerBean

        public CIFSServerBean​(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
        Class constructor
        Parameters:
        serverConfig - ServerConfiguration
    • 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
      • 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:
        onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean
      • onShutdown

        protected void onShutdown​(org.springframework.context.ApplicationEvent event)
        Specified by:
        onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean