openlsd.network.server.common.LSDLoadServerConfig Class Reference

Collaboration diagram for openlsd.network.server.common.LSDLoadServerConfig:

Collaboration graph
[legend]

List of all members.


Detailed Description

Load Configuration of Server from config file

Author:
Frederic BREGIER LGPL 2007

Static Public Member Functions

static boolean initFromXML (String filename, ConcurrentHashMap< Long, LSDLegacy >LegacyHMap, LSDServerInstance[] LSI, int initServer)

Static Public Attributes

static final String XPATH_OPENLSD = "/openlsd"
static final String XPATH_SERVERTIMEOUT = "/openlsd/server/timeout"
static final String XPATH_SERVERBLOCKSIZE = "/openlsd/server/blocksize"
static final String XPATH_FASTMD5PATH = "/openlsd/server/fastmd5path"
static final String XPATH_GETFILEFROMPATH_PATH = "/openlsd/server/getfilepath"
static final String XPATH_RUNWEBLSDSERVER_PATH = "/openlsd/server/runlsdpath"
static final String XPATH_RUNWEBLSDCHECK_PATH = "/openlsd/server/runlsdcheckpath"
static final String XPATH_WEBDF_PATH = "/openlsd/server/dfpath"
static final String XPATH_WEBDU_PATH = "/openlsd/server/dupath"
static final String XPATH_SLF4J_PATH = "/openlsd/server/slf4jpath"
static final String XPATH_HTTPPORT = "/openlsd/server/httpport"
static final String XPATH_ADMIN = "/openlsd/admin"
static final String XPATH_CLIENT = "/openlsd/client"
static final String XPATH_CLIENTCOMP = "/openlsd/clientcomp"
static final String XPATH_PROTECTED = "/openlsd/protected"
static final String XPATH_LEGACY = "/openlsd/legacy"
static final String XPATH_LEGACYFILE = "/openlsd/legacy/file"
static final String XPATH_PORT = "port"
static final String XPATH_COMPSERVER = "compressionserver"
static final String XPATH_COMPCLIENT = "compressionclient"
static final String XPATH_PASSWORD = "password"
static final String XPATH_FUNC_ADMIN = "funcadmin"
static final String XPATH_FUNC_DEL = "funcdel"
static final String XPATH_FUNC_GET = "funcget"
static final String XPATH_FUNC_GETNA = "funcgetna"
static final String XPATH_FUNC_INFO = "funcinfo"
static final String XPATH_FUNC_MOVE = "funcmove"
static final String XPATH_FUNC_PUT = "funcput"
static final String XPATH_FUNC_PUTNA = "funcputna"
static final String XPATH_FUNC_PUTFILE = "funcputfile"
static final String XPATH_LEGLID = "/legacy/lid"
static final String XPATH_LEGNAME = "/legacy/name"
static final String XPATH_LEGBASE = "/legacy/base"
static final String XPATH_LEGOUTBASE = "/legacy/outbase"
static final String XPATH_LEGSTORAGESIZE = "/legacy/storagesize"
static final String XPATH_LEGCRYPTED = "/legacy/crypted"
static final String XPATH_LEGKEY = "/legacy/key"
static final String XPATH_LEGSTATUS = "/legacy/status"

Static Private Member Functions

static LSDServerInstance initServerInstance (Node nodeserver, String name)

Member Function Documentation

static boolean openlsd.network.server.common.LSDLoadServerConfig.initFromXML ( String  filename,
ConcurrentHashMap< Long, LSDLegacy LegacyHMap,
LSDServerInstance[]  LSI,
int  initServer 
) [static]

Read the XML file filename, and init the values for the server according to this file.

Parameters:
filename of the XML config file
LegacyHMap HashMap for Legacy
LSI Array for all LSDServerInstance, if NULL, it is not used
initServer set to 1 to enable specific action for Server starts, 0 for no action (initDB), -1 for less init (CheckDB)
Returns:
True if OK, else False

static LSDServerInstance openlsd.network.server.common.LSDLoadServerConfig.initServerInstance ( Node  nodeserver,
String  name 
) [static, private]

Init one ServerInstance

Parameters:
nodeserver 
name 
Returns:
the new ServerInstance


Member Data Documentation

XML PATH base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_SERVERTIMEOUT = "/openlsd/server/timeout" [static]

XML PATH TimeOut limit

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_SERVERBLOCKSIZE = "/openlsd/server/blocksize" [static]

XML PATH Block Size

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_FASTMD5PATH = "/openlsd/server/fastmd5path" [static]

XML PATH Fast MD5 libary path

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_GETFILEFROMPATH_PATH = "/openlsd/server/getfilepath" [static]

XML PATH getFilePath path

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_RUNWEBLSDSERVER_PATH = "/openlsd/server/runlsdpath" [static]

XML PATH full command to run lsd server

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_RUNWEBLSDCHECK_PATH = "/openlsd/server/runlsdcheckpath" [static]

XML PATH full command to run check of lsd consistency

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_WEBDF_PATH = "/openlsd/server/dfpath" [static]

XML PATH df command

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_WEBDU_PATH = "/openlsd/server/dupath" [static]

XML PATH du command

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_SLF4J_PATH = "/openlsd/server/slf4jpath" [static]

XML PATH slf4j configuration file

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_HTTPPORT = "/openlsd/server/httpport" [static]

XML PATH Port for HTTP Service

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_ADMIN = "/openlsd/admin" [static]

XML PATH admin base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_CLIENT = "/openlsd/client" [static]

XML PATH client base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_CLIENTCOMP = "/openlsd/clientcomp" [static]

XML PATH clientcomp base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_PROTECTED = "/openlsd/protected" [static]

XML PATH protected base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_LEGACY = "/openlsd/legacy" [static]

XML PATH legacy base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_LEGACYFILE = "/openlsd/legacy/file" [static]

XML PATH legacy file base

XML PATH port for service

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_COMPSERVER = "compressionserver" [static]

XML PATH compression on server part

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_COMPCLIENT = "compressionclient" [static]

XML PATH compression on client part

XML PATH password

XML PATH support for admin

XML PATH support for del

XML PATH support for get

XML PATH support for get with no ack

XML PATH support for info

XML PATH support for move

XML PATH support for put

XML PATH support for put with no ack

XML PATH support for put from file (local only)

XML PATH Legacy Id

XML PATH Legacy Name

XML PATH Legacy Path base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_LEGOUTBASE = "/legacy/outbase" [static]

XML PATH Legacy Outpath base

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_LEGSTORAGESIZE = "/legacy/storagesize" [static]

XML PATH Legacy Storage size

final String openlsd.network.server.common.LSDLoadServerConfig.XPATH_LEGCRYPTED = "/legacy/crypted" [static]

XML PATH Legacy crypted mode

XML PATH Legacy crypted key

XML PATH Legacy status (open or closed)


The documentation for this class was generated from the following file: