openlsd.appli.admin.commondelete.LSDDeleteAbstract Class Reference

Inheritance diagram for openlsd.appli.admin.commondelete.LSDDeleteAbstract:

Inheritance graph
[legend]
Collaboration diagram for openlsd.appli.admin.commondelete.LSDDeleteAbstract:

Collaboration graph
[legend]

List of all members.


Detailed Description

Simple class that shared common things and methods between deleters
Author:
Frederic BREGIER LGPL 2007

Public Member Functions

 LSDDeleteAbstract (LSDLoadConfig llc)
int initDelete (String[]args, int curargs, boolean keepalived)
int initDeleteMT (String[]args, int curargs, boolean keepalived)
boolean runDelete (String filepath)
 LSDDeleteAbstract (LSDDbAdmin admin, ConcurrentLinkedQueue< LSDExtQueueMember > todoQueue, ConcurrentLinkedQueue< LSDExtQueueMember > doneQueue, LSDClientDelete lcd, LSDDbIpPort ipport, LSDDbLegacy legacy, long lid)
boolean runDeleteMT (String filepath)
void createRunningDeleteMT (ExecutorService executorService)
void run ()

Protected Member Functions

boolean deleteDocument (ArrayList< String > erreurs)

Protected Attributes

LSDDbAdmin admin = null
LSDDbLegacy legacy = null
LSDExtDbDocument document = null
long lid = LSDConstants.invalide_idx
LSDBusiness lsdb = null
LSDDbIpPort ipportProt = null
LSDClientDelete lcd = null
LSDClientDelete[] lcds = null
LSDDbAdmin[] admins = null
ConcurrentLinkedQueue
< LSDExtQueueMember
todoQueue = null
ConcurrentLinkedQueue
< LSDExtQueueMember
doneQueue = null

Constructor & Destructor Documentation

openlsd.appli.admin.commondelete.LSDDeleteAbstract.LSDDeleteAbstract ( LSDLoadConfig  llc  ) 

Create a new LSDDelete object

Parameters:
llc 

openlsd.appli.admin.commondelete.LSDDeleteAbstract.LSDDeleteAbstract ( LSDDbAdmin  admin,
ConcurrentLinkedQueue< LSDExtQueueMember todoQueue,
ConcurrentLinkedQueue< LSDExtQueueMember doneQueue,
LSDClientDelete  lcd,
LSDDbIpPort  ipport,
LSDDbLegacy  legacy,
long  lid 
)

Constructor for MT (to override)

Parameters:
admin 
todoQueue 
doneQueue 
lcd 
ipport 
legacy 
lid 


Member Function Documentation

int openlsd.appli.admin.commondelete.LSDDeleteAbstract.initDelete ( String[]  args,
int  curargs,
boolean  keepalived 
)

Init delete context except file listing itself

Parameters:
args 
curargs 
keepalived 
Returns:
Next curargs or -1 if in error

int openlsd.appli.admin.commondelete.LSDDeleteAbstract.initDeleteMT ( String[]  args,
int  curargs,
boolean  keepalived 
)

Init delete context except file listing itself, MultiThread version

Parameters:
args 
curargs 
keepalived 
Returns:
Next curargs or -1 if in error

boolean openlsd.appli.admin.commondelete.LSDDeleteAbstract.runDelete ( String  filepath  ) 

Run delete from the file containing list of id Business

Parameters:
filepath 
Returns:
True if OK, else False

boolean openlsd.appli.admin.commondelete.LSDDeleteAbstract.runDeleteMT ( String  filepath  ) 

Run delete from the file containing list of id Business, MultiThread version

Parameters:
filepath 
Returns:
True if OK, else False

void openlsd.appli.admin.commondelete.LSDDeleteAbstract.createRunningDeleteMT ( ExecutorService  executorService  ) 

Create running Delete, MultiThread version (To override)

Parameters:
executorService 

Reimplemented in openlsd.appli.admin.LSDDelete, and openlsd.multiple.admin.LSDDeleteML.

void openlsd.appli.admin.commondelete.LSDDeleteAbstract.run (  ) 

Run the delete operation on todoQueue, MultiThread version

See also:
java.lang.Runnable.run()

boolean openlsd.appli.admin.commondelete.LSDDeleteAbstract.deleteDocument ( ArrayList< String >  erreurs  )  [protected]

Truely delete the document in LSD then in DB

Parameters:
erreurs for Web functions support, ignore if null
Returns:
True if OK, else False

Reimplemented in openlsd.multiple.admin.commondelete.LSDDeleteAbstractML.


Member Data Documentation

DB Admin Object

DB Legacy Object

DB Document Object

Legacy ID

String identifying one specific document in one legacy : Business object

IpPort Object

Client Delete Object

Array of Client Delete Object

Array of DB Admin Object

Queue to exec delete

Queue to end of delete


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