openlsd.server.admin.commoncheck
Class LSDCheckPathThreaded

java.lang.Object
  extended by openlsd.server.admin.commoncheck.LSDCheckPathThreaded
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
LSDCheckPathThreadedML

public class LSDCheckPathThreaded
extends java.lang.Object
implements java.lang.Runnable

Get FilePath from LSD to import in DB (for sanity check)

Author:
Frederic Bregier LGPL

Constructor Summary
LSDCheckPathThreaded(LSDDbAdmin admin, LSDLegacy lsdlegacy, java.io.File dirsource, LSDDbControl control, boolean repairdb, boolean repairlsd, boolean repairupdb)
          Create the LSDCheckLocal
 
Method Summary
protected  void checkBothSides(LSDDbAdmin admin, LSDLegacy lsdlegacy, java.sql.Timestamp opdate, boolean repairdb, boolean repairlsd, boolean repairupdb)
          Launch the check on Both Sides
 void getLSDFiles(boolean runC)
          Import all files instances in DB (working table) and test them using checkBothSides
 void run()
          run getLSDFiles in subdirectories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSDCheckPathThreaded

public LSDCheckPathThreaded(LSDDbAdmin admin,
                            LSDLegacy lsdlegacy,
                            java.io.File dirsource,
                            LSDDbControl control,
                            boolean repairdb,
                            boolean repairlsd,
                            boolean repairupdb)
Create the LSDCheckLocal

Parameters:
admin -
lsdlegacy -
dirsource -
control -
repairdb -
repairlsd -
repairupdb -
Method Detail

getLSDFiles

public void getLSDFiles(boolean runC)
Import all files instances in DB (working table) and test them using checkBothSides

Parameters:
runC - set if use C functions or not

checkBothSides

protected void checkBothSides(LSDDbAdmin admin,
                              LSDLegacy lsdlegacy,
                              java.sql.Timestamp opdate,
                              boolean repairdb,
                              boolean repairlsd,
                              boolean repairupdb)
Launch the check on Both Sides

Parameters:
admin -
lsdlegacy -
opdate -
repairdb -
repairlsd -
repairupdb -

run

public void run()
run getLSDFiles in subdirectories

Specified by:
run in interface java.lang.Runnable