openlsd.multiple.admin.commondelete.LSDDeleteAbstractML Class Reference

Inheritance diagram for openlsd.multiple.admin.commondelete.LSDDeleteAbstractML:

Inheritance graph
[legend]
Collaboration diagram for openlsd.multiple.admin.commondelete.LSDDeleteAbstractML:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

Public Member Functions

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

Protected Member Functions

boolean deleteDocument (ArrayList< String > erreurs)

Protected Attributes

ArrayList< LSDDbIpPortlistIpPort = null
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

Private Attributes

Timestamp opdate = new Timestamp(new Date().getTime())

Constructor & Destructor Documentation

openlsd.multiple.admin.commondelete.LSDDeleteAbstractML.LSDDeleteAbstractML ( LSDLoadConfig  llc  ) 

Create a new LSDDeleteML object

Parameters:
llc 

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

Parameters:
admin 
todoQueue 
doneQueue 
lcd 
ipport 
legacy 
lid 


Member Function Documentation

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

Truely delete the document in LSD then insert in OpTable and delete in DB (Document)

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

Reimplemented from openlsd.appli.admin.commondelete.LSDDeleteAbstract.

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

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 
) [inherited]

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  )  [inherited]

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  )  [inherited]

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  )  [inherited]

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 (  )  [inherited]

Run the delete operation on todoQueue, MultiThread version

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


Member Data Documentation

List of IpPort for all documents to delete

Timestamp openlsd.multiple.admin.commondelete.LSDDeleteAbstractML.opdate = new Timestamp(new Date().getTime()) [private]

Timestamp for global operation

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

ConcurrentLinkedQueue<LSDExtQueueMember> openlsd.appli.admin.commondelete.LSDDeleteAbstract.todoQueue = null [protected, inherited]

Queue to exec delete

ConcurrentLinkedQueue<LSDExtQueueMember> openlsd.appli.admin.commondelete.LSDDeleteAbstract.doneQueue = null [protected, inherited]

Queue to end of delete


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