openlsd.multiple.admin.commoncheck
Class LSDCheckCommonML

java.lang.Object
  extended by java.lang.Thread
      extended by openlsd.server.admin.commoncheck.LSDCheckCommon
          extended by openlsd.multiple.admin.commoncheck.LSDCheckCommonML
All Implemented Interfaces:
java.lang.Runnable

public class LSDCheckCommonML
extends LSDCheckCommon

Extended class to take opFix into account (ML version)

Author:
Frederic BREGIER LGPL 2008

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int CHECKDBML
          Check from DB ML
static int CHECKLSDML
          Check from LSD ML
static int CHECKUPDBML
          Check from DB with MD5 update ML
protected static java.sql.Timestamp datesql
          Op Date Timestamp
protected static long idip
          ML Support: idip as the idip of the local server to use (as checked) if the check should use OpHandler function to correct problem.
protected static long opFix
          ML Support: OpFix as the idip of the remote server to use (as valid) if the check should use OpHandler function to correct problem.
 
Fields inherited from class openlsd.server.admin.commoncheck.LSDCheckCommon
adminThread, CHECKDB, checkFromLSD, CHECKLSD, checkmd5, CHECKUPDB, end, limit, lsdlegacy, nodata, opdate, outputResult, repairdb, repairlsd, repairupdb, sep, sizeline, sqlreq
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LSDCheckCommonML(int checkFromLSD, LSDDbAdmin admin, java.lang.String sqlreq)
          Create a thread for LSDCheckCommon
 
Method Summary
static void checkBothSidesML(LSDDbAdmin admin, LSDLegacy lsdlegacy, java.sql.Timestamp opdate, boolean repairlsd, long opFix, long idip)
          Check into DB in both direction LSDDocument <-> LSDCheck
protected  void checkFromDBML()
          Check LSD from DB
protected  void checkFromLSDML()
          Check DB from LSD
protected  void checkFromUpDBML()
          Check LSD from DB where MD5 is not updated but the document will be deleted and reimported
 void run()
          Run the check from LSD or DB
Override
 
Methods inherited from class openlsd.server.admin.commoncheck.LSDCheckCommon
addFileToByteBuffer, checkBothSides, checkFromDB, checkFromLSD, checkFromUpDB, createFileChannel, createtempFile, getUpDB, loadTempFile, runC, runJava, writeTempFile
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

opFix

protected static long opFix
ML Support: OpFix as the idip of the remote server to use (as valid) if the check should use OpHandler function to correct problem.


idip

protected static long idip
ML Support: idip as the idip of the local server to use (as checked) if the check should use OpHandler function to correct problem.


datesql

protected static java.sql.Timestamp datesql
Op Date Timestamp


CHECKLSDML

public static final int CHECKLSDML
Check from LSD ML

See Also:
Constant Field Values

CHECKDBML

public static final int CHECKDBML
Check from DB ML

See Also:
Constant Field Values

CHECKUPDBML

public static final int CHECKUPDBML
Check from DB with MD5 update ML

See Also:
Constant Field Values
Constructor Detail

LSDCheckCommonML

public LSDCheckCommonML(int checkFromLSD,
                        LSDDbAdmin admin,
                        java.lang.String sqlreq)
Create a thread for LSDCheckCommon

Parameters:
checkFromLSD - Set to CHECKLSD to check From LSD, CHECKDB from DB, CHECKUPDB from DB with MD5 update
or for ML support Set to CHECKLSDML to check From LSD, CHECKDBML from DB, CHECKUPDBML from DB with MD5 update
admin -
sqlreq -
Method Detail

run

public void run()
Run the check from LSD or DB
Override

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class LSDCheckCommon

checkFromLSDML

protected void checkFromLSDML()
Check DB from LSD

See Also:
LSDCheckCommon.checkFromLSD()

checkFromDBML

protected void checkFromDBML()
Check LSD from DB

See Also:
LSDCheckCommon.checkFromDB()

checkFromUpDBML

protected void checkFromUpDBML()
Check LSD from DB where MD5 is not updated but the document will be deleted and reimported

See Also:
LSDCheckCommon.checkFromUpDB()

checkBothSidesML

public static void checkBothSidesML(LSDDbAdmin admin,
                                    LSDLegacy lsdlegacy,
                                    java.sql.Timestamp opdate,
                                    boolean repairlsd,
                                    long opFix,
                                    long idip)
Check into DB in both direction LSDDocument <-> LSDCheck

Parameters:
admin -
lsdlegacy -
opdate -
repairlsd -
opFix -
idip -