Public Member Functions | |
LSDCheckCommonDualML (int checkFromLSD, LSDDbAdmin admin, String sqlreq) | |
void | run () |
Static Public Member Functions | |
static void | checkBothSidesML (LSDDbAdmin admin, LSDLegacy lsdlegacy, Timestamp opdate, Timestamp limitdate, boolean repairlsd, long opFix, long idip) |
static void | runC (LSDDbAdmin admin, Timestamp opdate, Timestamp limitdate, LSDLegacy lsdlegacy, File dirsource) |
static void | runC (LSDDbAdmin admin, Timestamp opdate, LSDLegacy lsdlegacy, File dirsource) |
static void | runJava (LSDDbAdmin admin, Timestamp opdate, Timestamp limitdate, LSDLegacy lsdlegacy, File dirsource) |
static void | runJava (LSDDbAdmin admin, Timestamp opdate, LSDLegacy lsdlegacy, File dirsource) |
static void | checkBothSides (LSDDbAdmin admin, LSDLegacy lsdlegacy, Timestamp opdate, Timestamp limitdate, boolean repairdb, boolean repairlsd, boolean repairupdb) |
static void | checkBothSides (LSDDbAdmin admin, LSDLegacy lsdlegacy, Timestamp opdate, boolean repairdb, boolean repairlsd, boolean repairupdb) |
Static Public Attributes | |
static final int | CHECKLSDML = 3 |
static final int | CHECKDBML = 4 |
static final int | CHECKUPDBML = 5 |
static final byte | sep = ' ' |
static final byte | end = '\n' |
static final byte | nodata = '@' |
static int | limit = 85 |
static final int | sizeline = 100 |
static boolean | checkmd5 = true |
static boolean | outputResult = true |
static final int | CHECKLSD = 0 |
static final int | CHECKDB = 1 |
static final int | CHECKUPDB = 2 |
Protected Member Functions | |
void | checkFromLSDML () |
void | checkFromDBML () |
void | checkFromUpDBML () |
void | checkFromLSD () |
void | checkFromDB () |
void | checkFromUpDB () |
Static Protected Member Functions | |
static String | getUpDBDual (long newlid) |
static File | createtempFile (File dir) |
static FileChannel | createFileChannel (File file) |
static boolean | addFileToByteBuffer (File file, byte[]blid, ByteBuffer niobb) |
static void | writeTempFile (ByteBuffer niobb, FileChannel filechannelout) |
static void | loadTempFile (LSDDbAdmin admin, File outputfile, long nbfile) |
static String | getUpDB (long newlid) |
Protected Attributes | |
int | checkFromLSD = -1 |
LSDDbAdmin | adminThread = null |
String | sqlreq = null |
Static Protected Attributes | |
static long | opFix = LSDConstants.invalide_idx |
static long | idip = LSDConstants.invalide_idx |
static Timestamp | datesql = new Timestamp(new Date().getTime()) |
static Timestamp | limitdate = null |
static LSDLegacy | lsdlegacy = null |
static boolean | repairdb = false |
static boolean | repairlsd = false |
static boolean | repairupdb = false |
static Timestamp | opdate = null |
openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.LSDCheckCommonDualML | ( | int | checkFromLSD, | |
LSDDbAdmin | admin, | |||
String | sqlreq | |||
) |
Create a thread for LSDCheckCommon
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 |
void openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.run | ( | ) |
Run the check from LSD or DB
Override
Reimplemented from openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.
void openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.checkFromLSDML | ( | ) | [protected] |
Check DB from LSD
void openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.checkFromDBML | ( | ) | [protected] |
Check LSD from DB
void openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.checkFromUpDBML | ( | ) | [protected] |
Check LSD from DB where MD5 is not updated but the document will be deleted and reimported
static void openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.checkBothSidesML | ( | LSDDbAdmin | admin, | |
LSDLegacy | lsdlegacy, | |||
Timestamp | opdate, | |||
Timestamp | limitdate, | |||
boolean | repairlsd, | |||
long | opFix, | |||
long | idip | |||
) | [static] |
Check into DB in both direction LSDDocument <-> LSDCheck
admin | ||
lsdlegacy | ||
opdate | ||
limitdate | ||
repairlsd | ||
opFix | ||
idip |
static void openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.runC | ( | LSDDbAdmin | admin, | |
Timestamp | opdate, | |||
Timestamp | limitdate, | |||
LSDLegacy | lsdlegacy, | |||
File | dirsource | |||
) | [static, inherited] |
run getLSDFiles in subdirectories in C
admin | The Admin DB Object | |
opdate | The Date as beginning of test (or null if no start barrier) | |
limitdate | The Date as end of test (or null if no end barrier) | |
lsdlegacy | The Legacy from LSD to check | |
dirsource | The Path to check |
static void openlsd.server.admin.commoncheck.LSDCheckCommon.runC | ( | LSDDbAdmin | admin, | |
Timestamp | opdate, | |||
LSDLegacy | lsdlegacy, | |||
File | dirsource | |||
) | [static, inherited] |
run getLSDFiles in subdirectories in C
admin | The Admin DB Object | |
opdate | The Date as beginning of test (or null if all) | |
lsdlegacy | The Legacy from LSD to check | |
dirsource | The Path to check |
static void openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.runJava | ( | LSDDbAdmin | admin, | |
Timestamp | opdate, | |||
Timestamp | limitdate, | |||
LSDLegacy | lsdlegacy, | |||
File | dirsource | |||
) | [static, inherited] |
run getLSDFiles in subdirectories in Java
admin | The Admin DB Object | |
opdate | The Date as beginning of test (or null if no start barrier) | |
limitdate | The Date as end of test (or null if no end barrier) | |
lsdlegacy | The Legacy from LSD to check | |
dirsource | The Path to check |
static void openlsd.server.admin.commoncheck.LSDCheckCommon.runJava | ( | LSDDbAdmin | admin, | |
Timestamp | opdate, | |||
LSDLegacy | lsdlegacy, | |||
File | dirsource | |||
) | [static, inherited] |
run getLSDFiles in subdirectories in Java
admin | The Admin DB Object | |
opdate | The Date as beginning of test (or null if all) | |
lsdlegacy | The Legacy from LSD to check | |
dirsource | The Path to check |
void openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.checkFromLSD | ( | ) | [protected, inherited] |
Check DB from LSD
Reimplemented from openlsd.server.admin.commoncheck.LSDCheckCommon.
void openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.checkFromDB | ( | ) | [protected, inherited] |
Check LSD from DB
Reimplemented from openlsd.server.admin.commoncheck.LSDCheckCommon.
void openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.checkFromUpDB | ( | ) | [protected, inherited] |
Check LSD from DB where MD5 can be updated
Reimplemented from openlsd.server.admin.commoncheck.LSDCheckCommon.
static String openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.getUpDBDual | ( | long | newlid | ) | [static, protected, inherited] |
Get the UpDB Select request
newlid |
static void openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.checkBothSides | ( | LSDDbAdmin | admin, | |
LSDLegacy | lsdlegacy, | |||
Timestamp | opdate, | |||
Timestamp | limitdate, | |||
boolean | repairdb, | |||
boolean | repairlsd, | |||
boolean | repairupdb | |||
) | [static, inherited] |
Check into DB in both direction LSDDocument <-> LSDCheck
admin | ||
lsdlegacy | ||
opdate | ||
limitdate | ||
repairdb | ||
repairlsd | ||
repairupdb |
static void openlsd.server.admin.commoncheck.LSDCheckCommon.checkBothSides | ( | LSDDbAdmin | admin, | |
LSDLegacy | lsdlegacy, | |||
Timestamp | opdate, | |||
boolean | repairdb, | |||
boolean | repairlsd, | |||
boolean | repairupdb | |||
) | [static, inherited] |
Check into DB in both direction LSDDocument <-> LSDCheck
admin | ||
lsdlegacy | ||
opdate | ||
repairdb | ||
repairlsd | ||
repairupdb |
static File openlsd.server.admin.commoncheck.LSDCheckCommon.createtempFile | ( | File | dir | ) | [static, protected, inherited] |
Create a temp file in dir
dir |
static FileChannel openlsd.server.admin.commoncheck.LSDCheckCommon.createFileChannel | ( | File | file | ) | [static, protected, inherited] |
Create a filechannel out from file
file |
static boolean openlsd.server.admin.commoncheck.LSDCheckCommon.addFileToByteBuffer | ( | File | file, | |
byte[] | blid, | |||
ByteBuffer | niobb | |||
) | [static, protected, inherited] |
Add one file into the ByteBuffer
file | ||
blid | ||
niobb |
static void openlsd.server.admin.commoncheck.LSDCheckCommon.writeTempFile | ( | ByteBuffer | niobb, | |
FileChannel | filechannelout | |||
) | [static, protected, inherited] |
Write the temp file
niobb | ||
filechannelout |
static void openlsd.server.admin.commoncheck.LSDCheckCommon.loadTempFile | ( | LSDDbAdmin | admin, | |
File | outputfile, | |||
long | nbfile | |||
) | [static, protected, inherited] |
Load the temp file into DB Check
admin | ||
outputfile | ||
nbfile |
static String openlsd.server.admin.commoncheck.LSDCheckCommon.getUpDB | ( | long | newlid | ) | [static, protected, inherited] |
Get the UpDB Select request
newlid |
long openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.opFix = LSDConstants.invalide_idx [static, protected] |
ML Support: OpFix as the idip of the remote server to use (as valid) if the check should use OpHandler function to correct problem.
long openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.idip = LSDConstants.invalide_idx [static, protected] |
ML Support: idip as the idip of the local server to use (as checked) if the check should use OpHandler function to correct problem.
Timestamp openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.datesql = new Timestamp(new Date().getTime()) [static, protected] |
Op Date Timestamp
final int openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.CHECKLSDML = 3 [static] |
Check from LSD ML
final int openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.CHECKDBML = 4 [static] |
Check from DB ML
final int openlsd.multiple.admin.commoncheck.limit.LSDCheckCommonDualML.CHECKUPDBML = 5 [static] |
Check from DB with MD5 update ML
Timestamp openlsd.server.admin.commoncheck.limit.LSDCheckCommonDual.limitdate = null [static, protected, inherited] |
The timestamp that fixes the end of the check
int openlsd.server.admin.commoncheck.LSDCheckCommon.checkFromLSD = -1 [protected, inherited] |
Set the way of check
final byte openlsd.server.admin.commoncheck.LSDCheckCommon.sep = ' ' [static, inherited] |
Seperator in String
final byte openlsd.server.admin.commoncheck.LSDCheckCommon.end = '\n' [static, inherited] |
End of String
final byte openlsd.server.admin.commoncheck.LSDCheckCommon.nodata = '@' [static, inherited] |
No data substring
int openlsd.server.admin.commoncheck.LSDCheckCommon.limit = 85 [static, inherited] |
Number of reference to put in ByteBuffer. Each reference is about 97 bytes (round to 100) and this number should be close to a multiple of 4K (here 8K => 85) like newlimit0*96 = x*4K GETFILEFROMPATH(JavaRecurNIO):31582
final int openlsd.server.admin.commoncheck.LSDCheckCommon.sizeline = 100 [static, inherited] |
Max Size of one line (Really = 96, but take 100 as closest value)
boolean openlsd.server.admin.commoncheck.LSDCheckCommon.checkmd5 = true [static, inherited] |
Should we test MD5
boolean openlsd.server.admin.commoncheck.LSDCheckCommon.outputResult = true [static, inherited] |
Should we print output result
LSDLegacy openlsd.server.admin.commoncheck.LSDCheckCommon.lsdlegacy = null [static, protected, inherited] |
The LSD Legacy to check
boolean openlsd.server.admin.commoncheck.LSDCheckCommon.repairdb = false [static, protected, inherited] |
Boolean to fix if DB is to be repaired
boolean openlsd.server.admin.commoncheck.LSDCheckCommon.repairlsd = false [static, protected, inherited] |
Boolean to fix if LSD is to be repaired
boolean openlsd.server.admin.commoncheck.LSDCheckCommon.repairupdb = false [static, protected, inherited] |
Boolean to fix if DB is to be repaired with updating MD5
Timestamp openlsd.server.admin.commoncheck.LSDCheckCommon.opdate = null [static, protected, inherited] |
The timestamp that fixes the beginning of the check
LSDDbAdmin openlsd.server.admin.commoncheck.LSDCheckCommon.adminThread = null [protected, inherited] |
The DB Admin Object for the thread
String openlsd.server.admin.commoncheck.LSDCheckCommon.sqlreq = null [protected, inherited] |
The SQLRequest to execute
final int openlsd.server.admin.commoncheck.LSDCheckCommon.CHECKLSD = 0 [static, inherited] |
Check from LSD
final int openlsd.server.admin.commoncheck.LSDCheckCommon.CHECKDB = 1 [static, inherited] |
Check from DB
final int openlsd.server.admin.commoncheck.LSDCheckCommon.CHECKUPDB = 2 [static, inherited] |
Check from DB with MD5 update