openlsd.multiple.admin
Class LSDCheckInDBThreadedML

java.lang.Object
  extended by openlsd.server.admin.commoncheck.LSDCheckInDBAbstract
      extended by openlsd.multiple.admin.commoncheck.LSDCheckInDBAbstractML
          extended by openlsd.multiple.admin.LSDCheckInDBThreadedML

public class LSDCheckInDBThreadedML
extends LSDCheckInDBAbstractML

Check DB <-> LSD in parallel but local to the LSD server with one step from LSD then both sides LSD/DB with DB. Version for ML support with no action on DB.

Author:
Frederic Bregier LGPL

Field Summary
 
Fields inherited from class openlsd.multiple.admin.commoncheck.LSDCheckInDBAbstractML
idip, opFix
 
Fields inherited from class openlsd.server.admin.commoncheck.LSDCheckInDBAbstract
admin, errorFreeLegacy, ipportAdmin, legacy, lid, llc, lsdlegacy, nodate, repairdb, repairlsd, repairupdb, updateDate, useCfunc
 
Constructor Summary
LSDCheckInDBThreadedML(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.multiple.admin.commoncheck.LSDCheckInDBAbstractML
checkLID, initializeArgs
 
Methods inherited from class openlsd.server.admin.commoncheck.LSDCheckInDBAbstract
checkDBConsistency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSDCheckInDBThreadedML

public LSDCheckInDBThreadedML(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. This function is intend to be used only in ML context to check consistency of one Storage against database but never correct the database. To correct database against LSD, you have to use the LSDCheckInDBThreaded without the ML option, but to be sure that all files are there before since one MLegacy could have an absent file but not in another MLegacy.

Parameters:
args - with the config filename (db config) as first arg, then the LSD config filename.
A third argument can be '-nbthread' following 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,
'-idip' follow by the idip of the Protected IpPort of the local LSD Server,
'-opfix' follow by the idip of the Protected IpPort of the valid LSD Server to repair all problems (if -repair or -repairlsd is set) through OpHandler,
'-repair' to repair all problems only in LSD (not in database, so same as -repairlsd) (optional),
'-repairlsd' to repair LSD references
A fourth argument can be the legacy on which the check will be applied, else all legacies will be used (optional).