public class JLANServer extends java.lang.Object implements ServerListener
Modifier and Type | Field and Description |
---|---|
static int |
CheckPointCheckIPAddress |
static int |
CheckPointConfigLoaded |
static int |
CheckPointConfigLoading |
static int |
CheckPointCreateFTPServer |
static int |
CheckPointCreateNFSServer |
static int |
CheckPointCreateSMBServer |
static int |
CheckPointFinished |
static int |
CheckPointRunning |
static int |
CheckPointServersStart |
static int |
CheckPointServersStarted |
static int |
CheckPointServersStop |
static int |
CheckPointServersStopped |
static int |
CheckPointStarting |
protected static boolean |
m_allowShutViaConsole |
protected static boolean |
m_dumpStackOnError |
protected static boolean |
m_restart |
protected static boolean |
m_shutdown |
ServerActive, ServerCustomEvent, ServerError, ServerShutdown, ServerStartup
Modifier | Constructor and Description |
---|---|
protected |
JLANServer()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkPoint(java.io.PrintStream out,
int check)
Checkpoint method, called at various points of the server startup and shutdown
|
protected void |
checkPointError(java.io.PrintStream out,
int check,
java.lang.Exception ex)
Checkpoint error method, called if an error occurs during server startup/shutdown
|
protected NetworkServer |
createFTPServer(ServerConfiguration config)
Create the FTP server
|
protected NetworkServer |
createNetBIOSServer(ServerConfiguration config)
Create the NetBIOS name server
|
protected NetworkServer |
createNFSMountServer(ServerConfiguration config)
Create the NFS mount server
|
protected NetworkServer |
createNFSPortMapper(ServerConfiguration config)
Create the NFS port mapper server
|
protected NetworkServer |
createNFSServer(ServerConfiguration config)
Create the NFS server
|
protected java.io.PrintStream |
createOutputStream()
Create the output stream for logging
|
protected NetworkServer |
createServer(java.lang.String className,
ServerConfiguration config)
Create a network server using reflection
|
protected NetworkServer |
createSMBServer(ServerConfiguration config)
Create the SMB server
|
protected void |
enableExceptionStackDump(boolean ena)
Enable/disable exception stack dumps
|
protected ServerConfiguration |
loadConfiguration(java.io.PrintStream out,
java.lang.String[] cmdLineArgs)
Load the server configuration, default is to load using an XML configuration file.
|
static void |
main(java.lang.String[] args)
Start the JLAN Server
|
void |
serverStatusEvent(NetworkServer server,
int event)
Handle server startup/shutdown events
|
static void |
setAllowConsoleShutdown(boolean consoleShut)
Set/clear the allow shutdown via console flag
|
static void |
shutdownServer(java.lang.String[] args)
Shutdown the server when running as an NT service
|
protected void |
start(java.lang.String[] args)
Start the JLAN Server
|
public static final int CheckPointStarting
public static final int CheckPointConfigLoading
public static final int CheckPointConfigLoaded
public static final int CheckPointCheckIPAddress
public static final int CheckPointCreateSMBServer
public static final int CheckPointCreateFTPServer
public static final int CheckPointCreateNFSServer
public static final int CheckPointServersStart
public static final int CheckPointServersStarted
public static final int CheckPointRunning
public static final int CheckPointServersStop
public static final int CheckPointServersStopped
public static final int CheckPointFinished
protected static boolean m_shutdown
protected static boolean m_restart
protected static boolean m_allowShutViaConsole
protected static boolean m_dumpStackOnError
public static void main(java.lang.String[] args)
args
- an array of command-line argumentspublic static final void setAllowConsoleShutdown(boolean consoleShut)
consoleShut
- booleanprotected final void enableExceptionStackDump(boolean ena)
ena
- booleanprotected void start(java.lang.String[] args)
args
- String[]public static final void shutdownServer(java.lang.String[] args)
args
- String[]protected final NetworkServer createSMBServer(ServerConfiguration config) throws java.lang.Exception
config
- ServerConfigurationjava.lang.Exception
protected final NetworkServer createNetBIOSServer(ServerConfiguration config) throws java.lang.Exception
config
- ServerConfigurationjava.lang.Exception
protected final NetworkServer createFTPServer(ServerConfiguration config) throws java.lang.Exception
config
- ServerConfigurationjava.lang.Exception
protected final NetworkServer createNFSServer(ServerConfiguration config) throws java.lang.Exception
config
- ServerConfigurationjava.lang.Exception
protected final NetworkServer createNFSMountServer(ServerConfiguration config) throws java.lang.Exception
config
- ServerConfigurationjava.lang.Exception
protected final NetworkServer createNFSPortMapper(ServerConfiguration config) throws java.lang.Exception
config
- ServerConfigurationjava.lang.Exception
protected final NetworkServer createServer(java.lang.String className, ServerConfiguration config) throws java.lang.Exception
className
- Stringconfig
- ServerConfigurationjava.lang.Exception
protected ServerConfiguration loadConfiguration(java.io.PrintStream out, java.lang.String[] cmdLineArgs) throws java.lang.Exception
out
- PrintStreamcmdLineArgs
- String[]java.lang.Exception
protected java.io.PrintStream createOutputStream()
protected void checkPoint(java.io.PrintStream out, int check)
out
- PrintStreamcheck
- intprotected void checkPointError(java.io.PrintStream out, int check, java.lang.Exception ex)
out
- PrintStreamcheck
- intex
- Exceptionpublic void serverStatusEvent(NetworkServer server, int event)
serverStatusEvent
in interface ServerListener
server
- NetworkServerevent
- intCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.