openlsd.multiple.admin.LSDOpHandlerExport Class Reference

Collaboration diagram for openlsd.multiple.admin.LSDOpHandlerExport:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class is intend to propose a framework to enable database replication using an applicative way (replication of orders to redo in replicated databases) based on the export files that can be produced by the OpHandler itself. The global logic is to produce for the given file a new file containing all necessary data to be replay on replicated hosts, using the format "idip;op;lid;sid;did;size;md5;business-index".
Author:
Frederic BREGIER LGPL 2007

Static Public Member Functions

static void main (String[] args)

Static Private Member Functions

static boolean oneLineTask (String line)

Static Private Attributes

static LSDDbPreparedStatement prepstmt = null
static LSDDbAdmin admin = null
static LSDExtDbDocument doc = null
static FileWriter fileWriter = null

Member Function Documentation

static void openlsd.multiple.admin.LSDOpHandlerExport.main ( String[]  args  )  [static]

This class proposes a way to compute "full" export file containing all necessary information for database replication.

Parameters:
args as client side configfilename and then the filename containing the export from OpHandler.

static boolean openlsd.multiple.admin.LSDOpHandlerExport.oneLineTask ( String  line  )  [static, private]

Export One line at a time

Parameters:
line 
Returns:
True if OK, else false


Member Data Documentation

The preparedStatement to get the corresponding document from LSD

The connection to the source database

The doc used in the iteration

FileWriter openlsd.multiple.admin.LSDOpHandlerExport.fileWriter = null [static, private]

FileWriter for the final output (source filename+".full")


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