openlsd.server.admin.commoncheck.LSDCheckPathThreaded Class Reference

Inheritance diagram for openlsd.server.admin.commoncheck.LSDCheckPathThreaded:

Inheritance graph
[legend]
Collaboration diagram for openlsd.server.admin.commoncheck.LSDCheckPathThreaded:

Collaboration graph
[legend]

List of all members.


Detailed Description

Get FilePath from LSD to import in DB (for sanity check)

Author:
Frederic Bregier LGPL

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

Constructor & Destructor Documentation

openlsd.server.admin.commoncheck.LSDCheckPathThreaded.LSDCheckPathThreaded ( LSDDbAdmin  admin,
LSDLegacy  lsdlegacy,
File  dirsource,
LSDDbControl  control,
boolean  repairdb,
boolean  repairlsd,
boolean  repairupdb 
)

Create the LSDCheckLocal

Parameters:
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

Parameters:
admin 
lsdlegacy 
dirsource 
control 
repairdb 
repairlsd 
repairupdb 
queue 
executor 
runC 


Member Function Documentation

File [] openlsd.server.admin.commoncheck.LSDCheckPathThreaded.getInitFiles (  )  [private]

Initialize list of top files

Returns:
an array 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

Parameters:
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

Parameters:
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.

Parameters:
linkedList 
file 
nb 
ldate 
Returns:
the number of files in list

void openlsd.server.admin.commoncheck.LSDCheckPathThreaded.run (  ) 

run getLSDFiles in subdirectories


Member Data Documentation

The DBAdmin connector

The File that points to the top of directories to check

The LSD Legacy object

The corresponding Control object in DB (previous check)

LSD is to be repaired

DB is to be repaired

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

A Thread Pool Executor

Set if we used C functions instead of Java functions


The documentation for this class was generated from the following file: