public class Harvester
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
filler |
static java.lang.String |
marker |
Constructor and Description |
---|
Harvester()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
java.lang.String |
dequoteText(java.lang.String text)
Normalizes text prior to insertion into the HARVEST_LOG or
HARVEST_DETAIL_LOG tables.
|
java.sql.Connection |
getConnection()
Returns a connection to the database.
|
int |
getDetailLogID()
Gets the current value of the detailLogID for storage as a primary key in
the DETAIL_LOG_ID field of the HARVEST_DETAIL_LOG table.
|
int |
getHarvestLogID()
Gets the current value of the harvestLogID for storage as a primary key in
the HARVEST_LOG_ID field of the HARVEST_LOG table.
|
void |
initLogIDs()
Initializes the detailLogID and harvestLogID values to their current
maximums + 1.
|
static void |
loadProperties(java.lang.String metacatContextDir)
Loads Harvester options from a configuration file.
|
static void |
main(java.lang.String[] args)
Harvester main method.
|
void |
setHarvestStartTime(java.util.Date date)
Sets the harvest start time for this harvest run.
|
public static final java.lang.String filler
public static final java.lang.String marker
public static void loadProperties(java.lang.String metacatContextDir)
public static void main(java.lang.String[] args)
args
- the command line arguments
args[0] if "false", then this is not command-line mode,
Command-line mode is true by default.
args[1] if present, represents the path to the harvest list schema file.
Specifying it overrides the default path to the schema file.SAXException
java.io.IOException
ParserConfigurationException
public void closeConnection()
public java.lang.String dequoteText(java.lang.String text)
text
- the original stringpublic java.sql.Connection getConnection()
public int getDetailLogID()
public int getHarvestLogID()
public void initLogIDs()
public void setHarvestStartTime(java.util.Date date)
date
- Copyright © 2020 Regents of the University of California. All Rights Reserved.