

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