openlsm.autoimport.commonimport
Class LSMImportAbstract

java.lang.Object
  extended by openlsd.appli.autoimport.commonimport.LSDImportAbstract
      extended by openlsm.autoimport.commonimport.LSMImportAbstract
Direct Known Subclasses:
LSMImport, LSMImport

public abstract class LSMImportAbstract
extends LSDImportAbstract

Simple class that shared common things and methods between importers for OpenLSM

Author:
Frederic BREGIER LGPL 2007

Field Summary
 
Fields inherited from class openlsd.appli.autoimport.commonimport.LSDImportAbstract
admin, async, blockmode, countKO, countOK, date_debut, dbconns, dir1, doneQueue, errorList, ext1, extidb, extKO, extOK, extStop, file0, fileKO, filename2Out, fileOK, isCompressed, isSameLid, istesting, KO, lcd, lci, lcp, lcps, lid0, listFiles, listline, llc, lsdb, nbFile, nbthread, option, passwd, sameDbConnMyltithread, sameLegacy, sameLid, source2, targetIdip, todelete, todoQueue, todoQueueB, todoQueueBLocal, todoQueueLocal, todoQueues, todoQueuesB, use2Out
 
Constructor Summary
protected LSMImportAbstract(LSDDbAdmin admin)
          Create a LSDImport from args.
protected LSMImportAbstract(LSDLoadConfig llc)
          Create a LSDImport from args.
 
Method Summary
protected  boolean finalizeAfterImport()
          Finalize status and object after import and close LSD connections
protected  boolean finalizeConnection()
          Finalize connection (database)
protected  boolean finishAfterAutoImport()
          Finalize status and object after import for AutoImport
protected  boolean getIndexFromString(java.lang.String line)
          Get file, lid and idb from the String line where a blank character is a separator.
protected  boolean initConnection()
          InitConnection.
protected  int initializeArgs(java.lang.String[] args, int curargs)
          Get arguments
protected  boolean initOptions(java.lang.String[] args, int curargs)
          Finalize Init options from args
protected  boolean prepareImportQueue()
          Prepare the Import Queue
 
Methods inherited from class openlsd.appli.autoimport.commonimport.LSDImportAbstract
errorFromPrepareImportQueue, finalizeAfterAutoImport, finalizeRegisterFile, getClientPutInfo, getClientPutInfoFromIpPort, getIpPortC, getIpPortP, getLegacy, initOneFileOption, initOptionsAuto, initRegisterFile, joinConnection, privateInitializeArgs, registerFalseFile, registerFalseFile, registerTrueFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSMImportAbstract

protected LSMImportAbstract(LSDLoadConfig llc)
Create a LSDImport from args. Not in Block mode.

Parameters:
llc -

LSMImportAbstract

protected LSMImportAbstract(LSDDbAdmin admin)
Create a LSDImport from args. Not in Block mode.

Parameters:
admin -
Method Detail

initializeArgs

protected int initializeArgs(java.lang.String[] args,
                             int curargs)
Get arguments

Overrides:
initializeArgs in class LSDImportAbstract
Parameters:
args -
curargs -
Returns:
the next current rank

getIndexFromString

protected boolean getIndexFromString(java.lang.String line)
Get file, lid and idb from the String line where a blank character is a separator. Should be override to explicitly specify how to use the correct business implementation.

Overrides:
getIndexFromString in class LSDImportAbstract
Parameters:
line -
Returns:
True if OK, else False

initOptions

protected boolean initOptions(java.lang.String[] args,
                              int curargs)
Finalize Init options from args

Overrides:
initOptions in class LSDImportAbstract
Parameters:
args -
curargs -
Returns:
True if OK, else False

initConnection

protected boolean initConnection()
InitConnection. Must be followed later on by joinConnection()

Overrides:
initConnection in class LSDImportAbstract
Returns:
True if OK, else False

prepareImportQueue

protected boolean prepareImportQueue()
Prepare the Import Queue

Overrides:
prepareImportQueue in class LSDImportAbstract
Returns:
True if OK, else False

finalizeAfterImport

protected boolean finalizeAfterImport()
Finalize status and object after import and close LSD connections

Overrides:
finalizeAfterImport in class LSDImportAbstract
Returns:
True if OK, else False

finishAfterAutoImport

protected boolean finishAfterAutoImport()
Finalize status and object after import for AutoImport

Overrides:
finishAfterAutoImport in class LSDImportAbstract
Returns:
True if OK, else False

finalizeConnection

protected boolean finalizeConnection()
Finalize connection (database)

Overrides:
finalizeConnection in class LSDImportAbstract
Returns:
True if OK, else False