openlsd.appli.admin.LSDCheckP Class Reference

Collaboration diagram for openlsd.appli.admin.LSDCheckP:

Collaboration graph
[legend]

List of all members.


Detailed Description

Check DB <-> LSD in parallel (unefficient)
Author:
Frederic Bregier LGPL

Static Public Member Functions

static void main (String[] args)

Private Member Functions

 LSDCheckP (LSDLoadConfig llc)
boolean checkLID ()

Private Attributes

LSDExtClientInfo[] lci = null
LSDExtClientInfo lcidb = null
long lid = LSDConstants.invalide_idx
LSDDbAdmin admin = null
LSDDbLegacy legacy = null
LSDDbIpPort ipportAdmin = null
boolean repairdb = false
boolean repairlsd = false

Static Private Attributes

static final int nbThread = 16
static int nbLSD = 1
static final long limit = 10000

Constructor & Destructor Documentation

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

Create a LSDCheck from args

Parameters:
llc 


Member Function Documentation

static void openlsd.appli.admin.LSDCheckP.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 all problems (optional), '-repairdb' to repair DB references, or '-repairlsd' to repair LSD references. 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.LSDCheckP.checkLID (  )  [private]

Check from LSD to DB and reverse for one Legacy

Returns:
True if OK, else return False


Member Data Documentation

Array of Info Client

Info Client

Legacy Id

DB Admin

DB Legacy

IpPort Admin

boolean openlsd.appli.admin.LSDCheckP.repairdb = false [private]

Should we repair DB

boolean openlsd.appli.admin.LSDCheckP.repairlsd = false [private]

Should we repair LSD

final int openlsd.appli.admin.LSDCheckP.nbThread = 16 [static, private]

Number of Threads in parallel

int openlsd.appli.admin.LSDCheckP.nbLSD = 1 [static, private]

Number of LSD

final long openlsd.appli.admin.LSDCheckP.limit = 10000 [static, private]

Limit in send/recv


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