openlsd.server.admin
Class LSDCheckInDBThreaded

java.lang.Object
  extended by openlsd.server.admin.commoncheck.LSDCheckInDBAbstract
      extended by openlsd.server.admin.LSDCheckInDBThreaded

public class LSDCheckInDBThreaded
extends LSDCheckInDBAbstract

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
 
Fields inherited from class openlsd.server.admin.commoncheck.LSDCheckInDBAbstract
admin, errorFreeLegacy, ipportAdmin, legacy, lid, llc, lsdlegacy, nodate, repairdb, repairlsd, repairupdb, updateDate, useCfunc
 
Constructor Summary
LSDCheckInDBThreaded(LSDLoadConfig llc)
          Create a LSDCheck from args
 
Method Summary
static void main(java.lang.String[] args)
          Start the connexion and runs the commands to check DB <-> LSD.
 
Methods inherited from class openlsd.server.admin.commoncheck.LSDCheckInDBAbstract
checkDBConsistency, checkLID, initializeArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSDCheckInDBThreaded

public LSDCheckInDBThreaded(LSDLoadConfig llc)
Create a LSDCheck from args

Parameters:
llc -
Method Detail

main

public static void main(java.lang.String[] args)
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 can be the legacy on which the check will be applied, else all legacies will be used (optional).