openlsd.multiple.admin
Class LSDInitOpFromDBPLForStorage

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

public class LSDInitOpFromDBPLForStorage
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 for One Storage from One Legacy, using PL/SQL procedure.

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  long lid
          Legacy ID
protected  LSDBusiness lsdb
          String identifying one specific document in one legacy : Business object
protected  long sid
          Storage ID
protected  LSDDbStorage storage
          DB Storage 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
-sid the storage to resynchronize in the given legacy
-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


storage

protected LSDDbStorage storage
DB Storage Object


lid

protected long lid
Legacy ID


sid

protected long sid
Storage 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
-sid the storage to resynchronize in the given legacy
-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