org.alfresco.filesys
Class CIFSServerBean

java.lang.Object
  extended by org.alfresco.util.AbstractLifecycleBean
      extended by org.alfresco.filesys.CIFSServerBean
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class CIFSServerBean
extends org.alfresco.util.AbstractLifecycleBean

CIFS Server Class

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


Field Summary
 
Fields inherited from class org.alfresco.util.AbstractLifecycleBean
log
 
Constructor Summary
CIFSServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
          Class constructor
 
Method Summary
 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 startServer()
          Start the CIFS server components
 void stopServer()
          Stop the CIFS server components
 
Methods inherited from class org.alfresco.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CIFSServerBean

public CIFSServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
Class constructor

Parameters:
serverConfig - ServerConfiguration
Method Detail

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 java.net.SocketException,
                              java.io.IOException
Start the CIFS server components

Throws:
java.net.SocketException - If a network error occurs
java.io.IOException - If an I/O error occurs

stopServer

public final void stopServer()
Stop the CIFS server components


main

public static void main(java.lang.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.alfresco.util.AbstractLifecycleBean

onShutdown

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


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.