public class NFSServerBean
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
Create and start the various server components required to run the NFS server.
| Constructor and Description |
|---|
NFSServerBean(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()
Check if the server is started/enabled
|
static void |
main(java.lang.String[] args)
Runs the NFS server directly
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
setNodeMonitor(NfsServerNodeMonitor nodeMonitor) |
void |
startServer()
Start the NFS server components
|
void |
stopServer()
Stop the NFS server components
|
public NFSServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
serverConfig - ServerConfigurationpublic final org.alfresco.jlan.server.config.ServerConfiguration getConfiguration()
public void setNodeMonitor(NfsServerNodeMonitor nodeMonitor)
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.