openlsd.appli.admin.LSDCheck Class Reference

Collaboration diagram for openlsd.appli.admin.LSDCheck:

Collaboration graph
[legend]

List of all members.


Detailed Description

Check DB <-> LSD from network (very unefficient)
Author:
Frederic Bregier LGPL

Static Public Member Functions

static void main (String[] args)

Private Member Functions

 LSDCheck (LSDLoadConfig llc)
boolean checkLID ()
int runClientList (LinkedBlockingQueue< LSDSimpleDocument > queue)
int runClientAExist (LinkedBlockingQueue< LSDSimpleDocument > queue)

Private Attributes

LSDExtClientInfo lci = null
long lid = LSDConstants.invalide_idx
LSDDbAdmin admin = null
LSDDbLegacy legacy = null
LSDDbIpPort ipportAdmin = null
boolean repair = false
LSDDbControl control = null

Constructor & Destructor Documentation

openlsd.appli.admin.LSDCheck.LSDCheck ( LSDLoadConfig  llc  )  [private]

Create a LSDCheck from args

Parameters:
llc 


Member Function Documentation

static void openlsd.appli.admin.LSDCheck.main ( String[]  args  )  [static]

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

Parameters:
args with the config filename as first arg. A second argument can be '-repair' to repair problems (optional). A third argument can be the legacy on which the check will be applied, else all legacies will be used (optional).

boolean openlsd.appli.admin.LSDCheck.checkLID (  )  [private]

Check from LSD to DB and reverse for one Legacy

Returns:
True if OK, else return False

int openlsd.appli.admin.LSDCheck.runClientList ( LinkedBlockingQueue< LSDSimpleDocument queue  )  [private]

Get the status when getting the List of files in one legacy

Parameters:
queue 
Returns:
the status of the function

int openlsd.appli.admin.LSDCheck.runClientAExist ( LinkedBlockingQueue< LSDSimpleDocument queue  )  [private]

Get the status when getting the List of files not in one legacy

Parameters:
queue 
Returns:
the status of the function


Member Data Documentation

Info client

Legacy Id

DB Admin object

DB Legacy object

IpPort Admin

boolean openlsd.appli.admin.LSDCheck.repair = false [private]

Should we repair

Last Operation on Check


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