org.safs.xml
Class MultiLogResults

java.lang.Object
  extended by org.safs.xml.MultiLogResults

public class MultiLogResults
extends java.lang.Object

Processes a user-specified directory for XML files. Creates a new single XML file consolidating the file hrefs for all XML files in the directory. Optionally, creates a summary XML file containing:

JVM Arguments:

This class requires the JDBC Drivers for SAS/Share be in the CLASSPATH already. This generally means that both associated JAR files be in the System CLASSPATH ( or passed in the command-line):


Field Summary
static java.lang.String ARG_CONNECTION
           
static java.lang.String ARG_DATAID
           
static java.lang.String ARG_DATAPATH
           
static java.lang.String ARG_DATASET
           
static java.lang.String ARG_DIR
           
static java.lang.String ARG_DRIVERS
           
static java.lang.String ARG_FIELD
           
static java.lang.String ARG_LOG
           
static java.lang.String ARG_NOSUMMARY
           
static java.lang.String ARG_NOUPDATE
           
static java.lang.String ARG_OPSOURCE
           
static java.lang.String ARG_OUT
           
static java.lang.String ARG_PROPS
           
static java.lang.String ARG_SUMMARY
           
static java.lang.String ARG_VALUE
           
static java.lang.String ARG_WHERE
           
 java.lang.String DEFAULT_CONNECTION
          default:"sharenet://qashr05.unx.sas.com:5011"
 java.lang.String DEFAULT_DATA_ID
          default:"mydata"
 java.lang.String DEFAULT_DATASET
           
 java.lang.String DEFAULT_DEV_DATA
          default:"'/tst/tools/deploymentdetails/dev/shrdata'"
 boolean DEFAULT_DO_SUMMARY
           
 boolean DEFAULT_DO_UPDATE
          set to false and any call to updateData will be ignored.
 java.lang.String DEFAULT_DRIVERS
           
 java.lang.String DEFAULT_FIELD
           
 java.lang.String DEFAULT_LOG_FILE
           
 java.lang.String DEFAULT_LOGS_DIR
           
 java.lang.String DEFAULT_OPSOURCE
           
 java.lang.String DEFAULT_OUTPUT_DIR
           
 java.lang.String DEFAULT_PROD_DATA
          default:"'/tst/tools/deploymentdetails/shrdata'"
 java.util.Properties DEFAULT_PROPS
           
 java.lang.String DEFAULT_SUMMARY_FILE
           
 java.lang.String DEFAULT_VALUE
           
 java.lang.String DEFAULT_WHERE
           
static java.lang.String PROP_KEY_JDBC_DRIVERS
           
static java.lang.String PROP_KEY_LIBREFS
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_CONNECTION
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_DATAID
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_DATAPATH
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_DATASET
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_DIR
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_DRIVERS
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_FIELD
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_LOG
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_NOSUMMARY
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_NOUPDATE
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_OPSOURCE
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_OUT
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_PROPS
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_SUMMARY
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_VALUE
           
static java.lang.String PROP_KEY_SAFS_MULTILOG_WHERE
           
static java.lang.String PROP_KEY_UNDOPOLICYNONE
           
 
Constructor Summary
MultiLogResults()
           
 
Method Summary
protected  java.lang.String getSystemProperty(java.lang.String pname)
           
static void log(java.lang.String message)
          Currently logs to System.out.
static void main(java.lang.String[] args)
          primarily a testing entry point.
 void processArgs(java.lang.String[] args)
          String[] args will override any processJVMOptions previously set-- assuming JVM Options are processed BEFORE these args.
protected  void processDriversArg(java.lang.String driversarg)
           
 void processJVMOptions()
          (Re)Set any arguments passed in as JVM -D Options.
protected  void processPropsArg(java.lang.String propsarg)
           
 void updateData()
          Invokes updateData with all DEFAULT arguments previously stored or set.
 void updateData(java.lang.String _connectURI, java.util.Properties prop, java.lang.String _dataid, java.lang.String _datapath, java.lang.String _dataset, java.lang.String _field, java.lang.String _value, java.lang.String _where, java.lang.String _opsource)
          The primary routine used to update the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DATA_ID

public java.lang.String DEFAULT_DATA_ID
default:"mydata"


DEFAULT_PROD_DATA

public java.lang.String DEFAULT_PROD_DATA
default:"'/tst/tools/deploymentdetails/shrdata'"


DEFAULT_DEV_DATA

public java.lang.String DEFAULT_DEV_DATA
default:"'/tst/tools/deploymentdetails/dev/shrdata'"


DEFAULT_DRIVERS

public java.lang.String DEFAULT_DRIVERS

DEFAULT_CONNECTION

public java.lang.String DEFAULT_CONNECTION
default:"sharenet://qashr05.unx.sas.com:5011"


DEFAULT_LOGS_DIR

public java.lang.String DEFAULT_LOGS_DIR

DEFAULT_OUTPUT_DIR

public java.lang.String DEFAULT_OUTPUT_DIR

DEFAULT_LOG_FILE

public java.lang.String DEFAULT_LOG_FILE

DEFAULT_DO_SUMMARY

public boolean DEFAULT_DO_SUMMARY

DEFAULT_SUMMARY_FILE

public java.lang.String DEFAULT_SUMMARY_FILE

DEFAULT_DATASET

public java.lang.String DEFAULT_DATASET

DEFAULT_FIELD

public java.lang.String DEFAULT_FIELD

DEFAULT_VALUE

public java.lang.String DEFAULT_VALUE

DEFAULT_OPSOURCE

public java.lang.String DEFAULT_OPSOURCE

DEFAULT_WHERE

public java.lang.String DEFAULT_WHERE

DEFAULT_PROPS

public java.util.Properties DEFAULT_PROPS

DEFAULT_DO_UPDATE

public boolean DEFAULT_DO_UPDATE
set to false and any call to updateData will be ignored.


PROP_KEY_LIBREFS

public static final java.lang.String PROP_KEY_LIBREFS
See Also:
Constant Field Values

PROP_KEY_UNDOPOLICYNONE

public static final java.lang.String PROP_KEY_UNDOPOLICYNONE
See Also:
Constant Field Values

PROP_KEY_JDBC_DRIVERS

public static final java.lang.String PROP_KEY_JDBC_DRIVERS
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_DIR

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DIR
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_OUT

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_OUT
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_LOG

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_LOG
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_NOSUMMARY

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_NOSUMMARY
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_SUMMARY

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_SUMMARY
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_DRIVERS

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DRIVERS
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_NOUPDATE

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_NOUPDATE
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_DATAID

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DATAID
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_DATAPATH

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DATAPATH
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_WHERE

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_WHERE
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_DATASET

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DATASET
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_FIELD

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_FIELD
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_VALUE

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_VALUE
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_CONNECTION

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_CONNECTION
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_PROPS

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_PROPS
See Also:
Constant Field Values

PROP_KEY_SAFS_MULTILOG_OPSOURCE

public static final java.lang.String PROP_KEY_SAFS_MULTILOG_OPSOURCE
See Also:
Constant Field Values

ARG_DIR

public static final java.lang.String ARG_DIR
See Also:
Constant Field Values

ARG_OUT

public static final java.lang.String ARG_OUT
See Also:
Constant Field Values

ARG_LOG

public static final java.lang.String ARG_LOG
See Also:
Constant Field Values

ARG_NOSUMMARY

public static final java.lang.String ARG_NOSUMMARY
See Also:
Constant Field Values

ARG_SUMMARY

public static final java.lang.String ARG_SUMMARY
See Also:
Constant Field Values

ARG_NOUPDATE

public static final java.lang.String ARG_NOUPDATE
See Also:
Constant Field Values

ARG_DRIVERS

public static final java.lang.String ARG_DRIVERS
See Also:
Constant Field Values

ARG_DATAID

public static final java.lang.String ARG_DATAID
See Also:
Constant Field Values

ARG_DATAPATH

public static final java.lang.String ARG_DATAPATH
See Also:
Constant Field Values

ARG_WHERE

public static final java.lang.String ARG_WHERE
See Also:
Constant Field Values

ARG_DATASET

public static final java.lang.String ARG_DATASET
See Also:
Constant Field Values

ARG_FIELD

public static final java.lang.String ARG_FIELD
See Also:
Constant Field Values

ARG_VALUE

public static final java.lang.String ARG_VALUE
See Also:
Constant Field Values

ARG_CONNECTION

public static final java.lang.String ARG_CONNECTION
See Also:
Constant Field Values

ARG_PROPS

public static final java.lang.String ARG_PROPS
See Also:
Constant Field Values

ARG_OPSOURCE

public static final java.lang.String ARG_OPSOURCE
See Also:
Constant Field Values
Constructor Detail

MultiLogResults

public MultiLogResults()
Method Detail

log

public static void log(java.lang.String message)
Currently logs to System.out. Other options may be supported in the future.


updateData

public void updateData()
Invokes updateData with all DEFAULT arguments previously stored or set.


updateData

public void updateData(java.lang.String _connectURI,
                       java.util.Properties prop,
                       java.lang.String _dataid,
                       java.lang.String _datapath,
                       java.lang.String _dataset,
                       java.lang.String _field,
                       java.lang.String _value,
                       java.lang.String _where,
                       java.lang.String _opsource)
The primary routine used to update the database.

Parameters:
_connectURI -
prop -
_dataid -
_datapath -
_dataset -
_field -
_value -
_where -
_opsource -

getSystemProperty

protected java.lang.String getSystemProperty(java.lang.String pname)

processPropsArg

protected void processPropsArg(java.lang.String propsarg)

processDriversArg

protected void processDriversArg(java.lang.String driversarg)

processJVMOptions

public void processJVMOptions()
(Re)Set any arguments passed in as JVM -D Options.


processArgs

public void processArgs(java.lang.String[] args)
String[] args will override any processJVMOptions previously set-- assuming JVM Options are processed BEFORE these args.


main

public static void main(java.lang.String[] args)
primarily a testing entry point.

Parameters:
args -