openlsd.server.admin.commoncheck.limit
Class LSDCheckPathThreadedDual

java.lang.Object
  extended by openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
LSDCheckPathThreadedDualML

public class LSDCheckPathThreadedDual
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
LSDCheckPathThreadedDual(LSDDbAdmin admin, LSDLegacy lsdlegacy, java.io.File dirsource, LSDDbControl control, java.sql.Timestamp limitdate, boolean repairdb, boolean repairlsd, boolean repairupdb)
          Create the LSDCheckLocal
 
Method Summary
protected  void checkBothSides(LSDDbAdmin admin, LSDLegacy lsdlegacy, java.sql.Timestamp opdate, java.sql.Timestamp limitdate, boolean repairdb, boolean repairlsd, boolean repairupdb)
          Launch the check on Both Sides
 void getLSDFiles(boolean runC)
          Import all files instances in DB (work)
 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

LSDCheckPathThreadedDual

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

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

getLSDFiles

public void getLSDFiles(boolean runC)
Import all files instances in DB (work)

Parameters:
runC - set if use C functions or not

checkBothSides

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

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

run

public void run()
run getLSDFiles in subdirectories

Specified by:
run in interface java.lang.Runnable