openlsd.server.admin.LSDCheckInDBThreadedDualLimit Class Reference

Inheritance diagram for openlsd.server.admin.LSDCheckInDBThreadedDualLimit:

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

Collaboration graph
[legend]

List of all members.


Detailed Description

Check DB <-> LSD in parallel but local to the LSD server with one step from LSD then both sides LSD/DB with DB using the ability to check between two dates (lower and upper bounds) with lower is the previous check date and upper is the current date.

Author:
Frederic Bregier LGPL

Public Member Functions

 LSDCheckInDBThreadedDualLimit (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

boolean checkLID ()
int initializeArgs (String[] args, int curargs)
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.LSDCheckInDBThreadedDualLimit.LSDCheckInDBThreadedDualLimit ( LSDLoadConfig  llc  ) 

Create a LSDCheck from args

Parameters:
llc 


Member Function Documentation

static void openlsd.server.admin.LSDCheckInDBThreadedDualLimit.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' follow by nb of thread,
'-nbstep' follow by the minimal nb of directories by thread,
'-nomd5' to not check md5,
'-noout' to only have a summary of checking,
'-update' to update the last time check in no repair mode and without any error found
'-nodate' to ignore the last time a check were done else check from that date,
'-cfunc' to use native C procedure to check the files on the filesystem (getFileFromPath),
'-nonio' to use no Nio function as Java procedure to check the file one the filesystem,
'-repair' to repair all problems (optional),
'-repairdb' to repair DB references, or
'-repairlsd' to repair LSD references or
'-repairupdb' to repair DB references including MD5.
A fourth argument must be the legacy on which the check will be applied, since in dual mode, the principle is to check one Legacy during a short time where any action is disabling on it. For instance no import or delete should be active between 1 minute before and after the check is launch.
Doing this way, the production is allowed to be running during check except this short time. '-nodate' is allow as only the upper date can be set (the second date is always the current date). One should however not allow delete operation during the check, since they can not be taken correctly into account.

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

Check from LSD to DB and reverse for one Legacy

Returns:
True if OK, else return False

Reimplemented from openlsd.server.admin.commoncheck.LSDCheckInDBAbstract.

Reimplemented in openlsd.multiple.admin.commoncheck.limit.LSDCheckInDBAbstractDualML.

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.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: