org.sourceforge.jemm.server
Class ServerOptions

java.lang.Object
  extended by org.sourceforge.jemm.server.ServerOptions

public class ServerOptions
extends java.lang.Object


Field Summary
static int DEFAULT_CLIENT_PORT
           
static int DEFAULT_CONTROL_PORT
           
 
Constructor Summary
ServerOptions(org.apache.commons.cli.CommandLine cmd)
           
 
Method Summary
protected  boolean fileDirExistsAndIsWritable(java.io.File file)
           
static org.apache.commons.cli.Options generateOptions()
           
 ServerAction getAction()
           
 int getControlPort()
           
 java.io.File getDataDir()
           
 ServerMode getMode()
           
 int getPort()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CLIENT_PORT

public static final int DEFAULT_CLIENT_PORT
See Also:
Constant Field Values

DEFAULT_CONTROL_PORT

public static final int DEFAULT_CONTROL_PORT
See Also:
Constant Field Values
Constructor Detail

ServerOptions

public ServerOptions(org.apache.commons.cli.CommandLine cmd)
              throws org.apache.commons.cli.ParseException
Throws:
org.apache.commons.cli.ParseException
Method Detail

fileDirExistsAndIsWritable

protected boolean fileDirExistsAndIsWritable(java.io.File file)

generateOptions

public static org.apache.commons.cli.Options generateOptions()

getAction

public ServerAction getAction()

getControlPort

public int getControlPort()

getPort

public int getPort()

getMode

public ServerMode getMode()

getDataDir

public java.io.File getDataDir()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.