openlsd.server.admin.commoncheck
Class LSDCheckInDBAbstract

java.lang.Object
  extended by openlsd.server.admin.commoncheck.LSDCheckInDBAbstract
Direct Known Subclasses:
LSDCheckDBConsistency, LSDCheckInDBAbstractDual, LSDCheckInDBAbstractML, LSDCheckInDBThreaded

public abstract class LSDCheckInDBAbstract
extends java.lang.Object

Check DB <-> LSD in parallel but local to the LSD server with one step from LSD then both sides LSD/DB with DB

Author:
Frederic Bregier LGPL

Field Summary
protected  LSDDbAdmin admin
          The DBAdmin connector
static boolean errorFreeLegacy
          Is the current Legacy error free
protected  LSDDbIpPort ipportAdmin
          The IpPort Admin object
protected  LSDDbLegacy legacy
          The DB Legacy object
protected  long lid
          current Legacy id
static LSDLoadConfig llc
          Object to load XML configuration
protected  LSDLegacy lsdlegacy
          The LSD Legacy object
protected  boolean nodate
          Don't take previous date in consideration
protected  boolean repairdb
          DB is to be repaired
protected  boolean repairlsd
          LSD is to be repaired
protected  boolean repairupdb
          DB is to be repaired with MD5 to be updated
protected  boolean updateDate
          No repair will be done but the date will be update if no error is found
protected  boolean useCfunc
          Use C Functions to check File Systems instead of Java Functions
 
Constructor Summary
LSDCheckInDBAbstract()
           
 
Method Summary
protected  boolean checkDBConsistency()
          Check only DB consistency
protected  boolean checkLID()
          Check from LSD to DB and reverse for one Legacy
protected  int initializeArgs(java.lang.String[] args, int curargs)
          Get arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lid

protected long lid
current Legacy id


admin

protected LSDDbAdmin admin
The DBAdmin connector


legacy

protected LSDDbLegacy legacy
The DB Legacy object


lsdlegacy

protected LSDLegacy lsdlegacy
The LSD Legacy object


ipportAdmin

protected LSDDbIpPort ipportAdmin
The IpPort Admin object


repairlsd

protected boolean repairlsd
LSD is to be repaired


repairdb

protected boolean repairdb
DB is to be repaired


repairupdb

protected boolean repairupdb
DB is to be repaired with MD5 to be updated


updateDate

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


errorFreeLegacy

public static boolean errorFreeLegacy
Is the current Legacy error free


nodate

protected boolean nodate
Don't take previous date in consideration


useCfunc

protected boolean useCfunc
Use C Functions to check File Systems instead of Java Functions


llc

public static LSDLoadConfig llc
Object to load XML configuration

Constructor Detail

LSDCheckInDBAbstract

public LSDCheckInDBAbstract()
Method Detail

initializeArgs

protected int initializeArgs(java.lang.String[] args,
                             int curargs)
Get arguments

Parameters:
args -
curargs -
Returns:
the next current rank

checkLID

protected boolean checkLID()
Check from LSD to DB and reverse for one Legacy

Returns:
True if OK, else return False

checkDBConsistency

protected boolean checkDBConsistency()
Check only DB consistency

Returns:
True if OK, else return False