openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual Class Reference

Inheritance diagram for openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual:

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

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

 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

Constructor & Destructor Documentation

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

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

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


Member Function Documentation

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

Initialize list of top files

Returns:
an array of top files

void openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.getLSDFiles ( boolean  runC  ) 

Import all files instances in DB (work)

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

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

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

void openlsd.server.admin.commoncheck.limit.LSDCheckPathThreadedDual.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)

The upper limit date for check

LSD is to be repaired

DB is to be repaired

DB is to be repaired with MD5 to be updated

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: