openlsd.common.LSDLoadConfig Class Reference

Collaboration diagram for openlsd.common.LSDLoadConfig:

Collaboration graph
[legend]

List of all members.


Detailed Description

Load configuration of client from Config File
Author:
Frederic Bregier LGPL

Public Member Functions

 LSDLoadConfig ()
boolean initConfig (String filename)

Public Attributes

String driver = null
String server = null
String user = null
String passwd = null

Static Private Attributes

static final String LC_DRIVER = "/openlsddb/driver"
static final String LC_SERVER = "/openlsddb/server"
static final String LC_SERVERUSER = "/openlsddb/user"
static final String LC_SERVERPWD = "/openlsddb/password"
static final String LC_TIMEOUTCON = "/openlsddb/timeoutcon"
static final String LC_TIMEOUT = "/openlsddb/timeout"
static final String LC_BLOCKSIZE = "/openlsddb/blocksize"
static final String LC_SLF4JPATH = "/openlsddb/slf4jpath"
static final String LC_LSDBUSINESS = "/openlsddb/business"

Constructor & Destructor Documentation

openlsd.common.LSDLoadConfig.LSDLoadConfig (  ) 

Create a new LoadConfig but do not load the config


Member Function Documentation

boolean openlsd.common.LSDLoadConfig.initConfig ( String  filename  ) 

Load the config from the config filename for standard client support. (xml config file containing driver and server configuration as <driver>com.mysql.jdbc.Driver</driver> <server>jdbc:mysql://localhost/lsd</server> <user>lsd</user> and <password>lsd</password>).

Parameters:
filename 
Returns:
True if OK, else False


Member Data Documentation

Driver after Config is loaded

Server after Config is loaded

User after Config is loaded

Password after Config is loaded

final String openlsd.common.LSDLoadConfig.LC_DRIVER = "/openlsddb/driver" [static, private]

Access into the XML config file XML Path: DB Driver

final String openlsd.common.LSDLoadConfig.LC_SERVER = "/openlsddb/server" [static, private]

XML Path: DB Server

final String openlsd.common.LSDLoadConfig.LC_SERVERUSER = "/openlsddb/user" [static, private]

XML Path: DB User

final String openlsd.common.LSDLoadConfig.LC_SERVERPWD = "/openlsddb/password" [static, private]

XML Path: DB Password

final String openlsd.common.LSDLoadConfig.LC_TIMEOUTCON = "/openlsddb/timeoutcon" [static, private]

XML Path: TimeOut for Connection

final String openlsd.common.LSDLoadConfig.LC_TIMEOUT = "/openlsddb/timeout" [static, private]

XML Path: TimeOut once connected

final String openlsd.common.LSDLoadConfig.LC_BLOCKSIZE = "/openlsddb/blocksize" [static, private]

XML Path: Blocksize

final String openlsd.common.LSDLoadConfig.LC_SLF4JPATH = "/openlsddb/slf4jpath" [static, private]

XML Path: Log4J configuration file

final String openlsd.common.LSDLoadConfig.LC_LSDBUSINESS = "/openlsddb/business" [static, private]

XML Path: full class name for business implementation


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