Public Member Functions | |
LSDCheckPathThreadedDual (LSDDbAdmin admin, LSDLegacy lsdlegacy, File dirsource, LSDDbControl control, Timestamp limitdate, boolean repairdb, boolean repairlsd, boolean repairupdb) | |
void | getLSDFiles (boolean runC) |
void | run () |
Protected Member Functions | |
void | checkBothSides (LSDDbAdmin admin, LSDLegacy lsdlegacy, Timestamp opdate, Timestamp limitdate, boolean repairdb, boolean repairlsd, boolean repairupdb) |
Private Member Functions | |
LSDCheckPathThreadedDual (LSDDbAdmin admin, LSDLegacy lsdlegacy, File dirsource, LSDDbControl control, Timestamp limitdate, boolean repairdb, boolean repairlsd, boolean repairupdb, LinkedBlockingQueue< File > queue, ThreadPoolExecutor executor, boolean runC) | |
File[] | getInitFiles () |
int | addFilesInList (LinkedList< File > linkedList, File file, int nb, long ldate, long ldate2) |
Private Attributes | |
LSDDbAdmin | admin = null |
File | dirsource = null |
LSDLegacy | lsdlegacy = null |
LSDDbControl | control = null |
Timestamp | limitdate = null |
boolean | repairlsd = false |
boolean | repairdb = false |
boolean | repairupdb = false |
LinkedBlockingQueue< File > | queue = null |
ThreadPoolExecutor | executor = null |
boolean | runC = false |
openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.LSDCheckPathThreadedDual | ( | LSDDbAdmin | admin, | |
LSDLegacy | lsdlegacy, | |||
File | dirsource, | |||
LSDDbControl | control, | |||
Timestamp | limitdate, | |||
boolean | repairdb, | |||
boolean | repairlsd, | |||
boolean | repairupdb | |||
) |
Create the LSDCheckLocal
admin | ||
lsdlegacy | ||
dirsource | ||
control | ||
limitdate | ||
repairdb | ||
repairlsd | ||
repairupdb |
openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.LSDCheckPathThreadedDual | ( | LSDDbAdmin | admin, | |
LSDLegacy | lsdlegacy, | |||
File | dirsource, | |||
LSDDbControl | control, | |||
Timestamp | limitdate, | |||
boolean | repairdb, | |||
boolean | repairlsd, | |||
boolean | repairupdb, | |||
LinkedBlockingQueue< File > | queue, | |||
ThreadPoolExecutor | executor, | |||
boolean | runC | |||
) | [private] |
Create the LSDCheckLocal for threaded task only
admin | ||
lsdlegacy | ||
dirsource | ||
control | ||
limitdate | ||
repairdb | ||
repairlsd | ||
repairupdb | ||
queue | ||
executor | ||
runC |
File [] openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.getInitFiles | ( | ) | [private] |
Initialize list of top files
void openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.getLSDFiles | ( | boolean | runC | ) |
Import all files instances in DB (work)
runC | set if use C functions or not |
void openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.checkBothSides | ( | LSDDbAdmin | admin, | |
LSDLegacy | lsdlegacy, | |||
Timestamp | opdate, | |||
Timestamp | limitdate, | |||
boolean | repairdb, | |||
boolean | repairlsd, | |||
boolean | repairupdb | |||
) | [protected] |
Launch the check on Both Sides
admin | ||
lsdlegacy | ||
opdate | ||
limitdate | ||
repairdb | ||
repairlsd | ||
repairupdb |
Reimplemented in openlsd.multiple.admin.commoncheck.limit.LSDCheckPathThreadedDualML.
int openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.addFilesInList | ( | LinkedList< File > | linkedList, | |
File | file, | |||
int | nb, | |||
long | ldate, | |||
long | ldate2 | |||
) | [private] |
Add Sub directories or files in List and returns the nb of files in list.
linkedList | ||
file | ||
nb | ||
ldate | ||
ldate2 |
void openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.run | ( | ) |
run getLSDFiles in subdirectories
The DBAdmin connector
File openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.dirsource = null [private] |
The File that points to the top of directories to check
LSDLegacy openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.lsdlegacy = null [private] |
The LSD Legacy object
LSDDbControl openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.control = null [private] |
The corresponding Control object in DB (previous check)
Timestamp openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.limitdate = null [private] |
The upper limit date for check
boolean openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.repairlsd = false [private] |
LSD is to be repaired
boolean openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.repairdb = false [private] |
DB is to be repaired
boolean openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.repairupdb = false [private] |
DB is to be repaired with MD5 to be updated
LinkedBlockingQueue<File> openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.queue = null [private] |
Queue for files to check
ThreadPoolExecutor openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.executor = null [private] |
A Thread Pool Executor
boolean openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.runC = false [private] |
Set if we used C functions instead of Java functions