openlsd.multiple.admin
Class LSDInitOpFromDB

java.lang.Object
  extended by openlsd.multiple.admin.LSDInitOpFromDB

public class LSDInitOpFromDB
extends java.lang.Object

This class is intend to enable reload of all documents in the Op table in order to allow resynchronisation after a crash occurs on the remote OpenLSD Server.

Author:
Frederic BREGIER LGPL 2007

Field Summary
protected  LSDDbAdmin admin
          DB Admin Object
protected  long idip
          IdIp of local LSD Server in ML case (option -idip)
protected  LSDDbIpPort ipportProt
          IpPort Object
protected  boolean isConcurrent
          Is in mode concurrent of Import and OpHandler (less performant)
protected  LSDDbLegacy legacy
          DB Legacy Object
protected  long lid
          Legacy ID
protected  LSDBusiness lsdb
          String identifying one specific document in one legacy : Business object
 
Method Summary
protected  int initializeArgs(java.lang.String[] args, int curargs)
          Get arguments
static void main(java.lang.String[] args)
          This program takes the following arguments:
the configfilename
-lid the legacy to resynchronize
-idip the Id for IpPort of the LSD Server source for Protected port
-concurrent: specify that each reference has to be commited (less performance)
 boolean runInitOpFromDB()
          Initialize the Op database table from existent documents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

admin

protected LSDDbAdmin admin
DB Admin Object


legacy

protected LSDDbLegacy legacy
DB Legacy Object


lid

protected long lid
Legacy ID


lsdb

protected LSDBusiness lsdb
String identifying one specific document in one legacy : Business object


ipportProt

protected LSDDbIpPort ipportProt
IpPort Object


isConcurrent

protected boolean isConcurrent
Is in mode concurrent of Import and OpHandler (less performant)


idip

protected long idip
IdIp of local LSD Server in ML case (option -idip)

Method Detail

initializeArgs

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

Parameters:
args -
curargs -
Returns:
the next current rank

main

public static void main(java.lang.String[] args)
This program takes the following arguments:
the configfilename
-lid the legacy to resynchronize
-idip the Id for IpPort of the LSD Server source for Protected port
-concurrent: specify that each reference has to be commited (less performance)

Parameters:
args -

runInitOpFromDB

public boolean runInitOpFromDB()
Initialize the Op database table from existent documents

Returns:
True if OK, else False