|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread openlsd.server.admin.commoncheck.LSDCheckCommon openlsd.multiple.admin.commoncheck.LSDCheckCommonML
public class LSDCheckCommonML
Extended class to take opFix into account (ML version)
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 |
---|
protected static long opFix
protected static long idip
protected static java.sql.Timestamp datesql
public static final int CHECKLSDML
public static final int CHECKDBML
public static final int CHECKUPDBML
Constructor Detail |
---|
public LSDCheckCommonML(int checkFromLSD, LSDDbAdmin admin, java.lang.String sqlreq)
checkFromLSD
- Set to CHECKLSD to check From LSD, CHECKDB from DB,
CHECKUPDB from DB with MD5 update admin
- sqlreq
- Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class LSDCheckCommon
protected void checkFromLSDML()
LSDCheckCommon.checkFromLSD()
protected void checkFromDBML()
LSDCheckCommon.checkFromDB()
protected void checkFromUpDBML()
LSDCheckCommon.checkFromUpDB()
public static void checkBothSidesML(LSDDbAdmin admin, LSDLegacy lsdlegacy, java.sql.Timestamp opdate, boolean repairlsd, long opFix, long idip)
admin
- lsdlegacy
- opdate
- repairlsd
- opFix
- idip
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |