|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.safs.xml.MultiLogResults
public class MultiLogResults
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 |
---|
public java.lang.String DEFAULT_DATA_ID
public java.lang.String DEFAULT_PROD_DATA
public java.lang.String DEFAULT_DEV_DATA
public java.lang.String DEFAULT_DRIVERS
public java.lang.String DEFAULT_CONNECTION
public java.lang.String DEFAULT_LOGS_DIR
public java.lang.String DEFAULT_OUTPUT_DIR
public java.lang.String DEFAULT_LOG_FILE
public boolean DEFAULT_DO_SUMMARY
public java.lang.String DEFAULT_SUMMARY_FILE
public java.lang.String DEFAULT_DATASET
public java.lang.String DEFAULT_FIELD
public java.lang.String DEFAULT_VALUE
public java.lang.String DEFAULT_OPSOURCE
public java.lang.String DEFAULT_WHERE
public java.util.Properties DEFAULT_PROPS
public boolean DEFAULT_DO_UPDATE
public static final java.lang.String PROP_KEY_LIBREFS
public static final java.lang.String PROP_KEY_UNDOPOLICYNONE
public static final java.lang.String PROP_KEY_JDBC_DRIVERS
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DIR
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_OUT
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_LOG
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_NOSUMMARY
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_SUMMARY
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DRIVERS
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_NOUPDATE
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DATAID
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DATAPATH
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_WHERE
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_DATASET
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_FIELD
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_VALUE
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_CONNECTION
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_PROPS
public static final java.lang.String PROP_KEY_SAFS_MULTILOG_OPSOURCE
public static final java.lang.String ARG_DIR
public static final java.lang.String ARG_OUT
public static final java.lang.String ARG_LOG
public static final java.lang.String ARG_NOSUMMARY
public static final java.lang.String ARG_SUMMARY
public static final java.lang.String ARG_NOUPDATE
public static final java.lang.String ARG_DRIVERS
public static final java.lang.String ARG_DATAID
public static final java.lang.String ARG_DATAPATH
public static final java.lang.String ARG_WHERE
public static final java.lang.String ARG_DATASET
public static final java.lang.String ARG_FIELD
public static final java.lang.String ARG_VALUE
public static final java.lang.String ARG_CONNECTION
public static final java.lang.String ARG_PROPS
public static final java.lang.String ARG_OPSOURCE
Constructor Detail |
---|
public MultiLogResults()
Method Detail |
---|
public static void log(java.lang.String message)
public void 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)
_connectURI
- prop
- _dataid
- _datapath
- _dataset
- _field
- _value
- _where
- _opsource
- protected java.lang.String getSystemProperty(java.lang.String pname)
protected void processPropsArg(java.lang.String propsarg)
protected void processDriversArg(java.lang.String driversarg)
public void processJVMOptions()
public void processArgs(java.lang.String[] args)
public static void main(java.lang.String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |