openlsd.server.admin.LSDCheckDBConsistency Class Reference

Inheritance diagram for openlsd.server.admin.LSDCheckDBConsistency:

Inheritance graph
[legend]
Collaboration diagram for openlsd.server.admin.LSDCheckDBConsistency:

Collaboration graph
[legend]

List of all members.


Detailed Description

Check DB consistency (no LSD check, just in database)

Author:
Frederic Bregier LGPL

Public Member Functions

 LSDCheckDBConsistency (LSDLoadConfig llc)

Static Public Member Functions

static void main (String[] args)

Static Public Attributes

static boolean errorFreeLegacy = true
static LSDLoadConfig llc = null

Protected Member Functions

int initializeArgs (String[] args, int curargs)
boolean checkLID ()
boolean checkDBConsistency ()

Protected Attributes

long lid = LSDConstants.invalide_idx
LSDDbAdmin admin = null
LSDDbLegacy legacy = null
LSDLegacy lsdlegacy = null
LSDDbIpPort ipportAdmin = null
boolean repairlsd = false
boolean repairdb = false
boolean repairupdb = false
boolean updateDate = false
boolean nodate = false
boolean useCfunc = false

Constructor & Destructor Documentation

openlsd.server.admin.LSDCheckDBConsistency.LSDCheckDBConsistency ( LSDLoadConfig  llc  ) 

Create a LSDCheck from args

Parameters:
llc 


Member Function Documentation

static void openlsd.server.admin.LSDCheckDBConsistency.main ( String[]  args  )  [static]

Start the connexion and runs the commands to check DB <-> LSD.

Parameters:
args with the config filename (db config) as first arg, then the LSD config filename.
A third argument can be '-nbthread' following by nb of thread,
'-repair' to repair all problems (optional).
A fourth argument can be the legacy on which the check will be applied, else all legacies will be used (optional).

int openlsd.server.admin.commoncheck.LSDCheckInDBAbstract.initializeArgs ( String[]  args,
int  curargs 
) [protected, inherited]

Get arguments

Parameters:
args 
curargs 
Returns:
the next current rank

Reimplemented in openlsd.multiple.admin.commoncheck.limit.LSDCheckInDBAbstractDualML, and openlsd.multiple.admin.commoncheck.LSDCheckInDBAbstractML.

boolean openlsd.server.admin.commoncheck.LSDCheckInDBAbstract.checkLID (  )  [protected, inherited]

boolean openlsd.server.admin.commoncheck.LSDCheckInDBAbstract.checkDBConsistency (  )  [protected, inherited]

Check only DB consistency

Returns:
True if OK, else return False


Member Data Documentation

current Legacy id

The DBAdmin connector

The DB Legacy object

The LSD Legacy object

The IpPort Admin object

LSD is to be repaired

DB is to be repaired

DB is to be repaired with MD5 to be updated

No repair will be done but the date will be update if no error is found

Is the current Legacy error free

boolean openlsd.server.admin.commoncheck.LSDCheckInDBAbstract.nodate = false [protected, inherited]

Don't take previous date in consideration

Use C Functions to check File Systems instead of Java Functions

Object to load XML configuration


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