public class EDR_CleanUp extends Product_CleanUp implements CleanUp
CleanUp
,
Product_CleanUp
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCHIVE_TABLE |
static java.lang.String |
ID
Class Identifier
|
static java.lang.String |
PRODUCT_TABLE |
DEFAULT_CONFIGURATION_FILE, isCLI, Property_Changer, Verbose
ABSOLUTE_MAXIMUM_ORBIT_NUMBER, ANAGLYPH, DEFAULT_MAXIMUM_ORBIT_NUMBER, DEFAULT_MINIMUM_ORBIT_NUMBER, EDR, EDR_EXTRAS, IDLE_STATUS_MESSAGE, INDEX_TABLE_UPDATE_PROPERTY_NAME, MAXIMUM_UPDATES_BEFORE_COMMIT, OLD_VERSION_ID_ALIAS, PREPARE_STATUS_PROPERTY_NAME, PREPARE_STATUS_ROW_PROPERTY_NAME, RDR, RDR_EXTRAS, RELEASED_VERSION_ID_ALIAS, REMOVAL_STATUS_COUNT_PROPERTY_NAME, REMOVING_PRODUCT_PROPERTY_NAME, SEARCH_STATUS_COMPILING_DATA, SEARCH_STATUS_COMPLETE, SEARCH_STATUS_CONSTRUCT, SEARCH_STATUS_EXECUTE, SEARCH_STATUS_PROPERTY_NAME, SEARCH_STATUS_START, Status_Hash
Constructor and Description |
---|
EDR_CleanUp()
Construct an instance of the EDR_CleanUp class.
|
EDR_CleanUp(PIRL.Configuration.Configuration configuration)
Construct an instance of the EDR_CleanUp class using a configuration object
|
EDR_CleanUp(java.lang.String configuration_file)
Construct an instance of the EDR_CleanUp class using the given
configuration file.
|
Modifier and Type | Method and Description |
---|---|
void |
Clean_Up_Products(java.util.Vector<Product> products)
Perform the CleanUp operation on a vector of products.
|
java.util.Vector<java.lang.String> |
Column_Names()
A convenience function allowing other applications, particularly gui's, easy
access to the list of columns retrieved from the database during the
Product_CleanUp.Find_Products(String, int, int) method call. |
void |
Create_Archive_Table()
A convenience method useful during the testing process, as the mysql's
archive engine has a number of limitations that are easier to program into
this method than to deal with manually.
|
void |
Drop_Archive_Table()
Drops the archive table for the product, and allows the archive table to
be recreated using the Create_Archive_Table() method.
|
java.util.Vector<java.util.Vector<java.lang.String>> |
Find_Products(java.lang.String observation_id,
int start_orbit,
int end_orbit)
This method should retrieve a list of products from the database that can
be removed from the file system because newer versions of these products have
been released.
|
static void |
main(java.lang.String[] args) |
Product |
Product_Data(java.lang.String product_id,
java.lang.String version,
java.lang.String type)
This method should create a Product instance by retrieving the product
information from the database.
|
addPropertyChangeListener, File_Status_Tests, Get_Catalog, Get_Configuration, Get_Database, isCLI, isCLI, Print_Progress, Search_Status_Hash, Verbose, Verbose
public static final java.lang.String ID
public static final java.lang.String ARCHIVE_TABLE
public static final java.lang.String PRODUCT_TABLE
public EDR_CleanUp() throws PIRL.Configuration.Configuration_Exception, PIRL.Database.Database_Exception
PIRL.Configuration.Configuration_Exception
- if a problem with the configuration file
is foundPIRL.Database.Database_Exception
- if a problem occurs when setting up the
database connection.Product_CleanUp
,
EDR_CleanUp(String)
public EDR_CleanUp(java.lang.String configuration_file) throws PIRL.Configuration.Configuration_Exception, PIRL.Database.Database_Exception
configuration_file
- - a string containing the name of a configuration filePIRL.Configuration.Configuration_Exception
- if a problem with the configuration file
is foundPIRL.Database.Database_Exception
- if a problem occurs when setting up the
database connection.public EDR_CleanUp(PIRL.Configuration.Configuration configuration) throws PIRL.Configuration.Configuration_Exception, PIRL.Database.Database_Exception
configuration
- PIRL.Configuration.Configuration_Exception
- if a problem with the configuration file
is foundPIRL.Database.Database_Exception
- if a problem occurs when setting up the
database connection.public void Clean_Up_Products(java.util.Vector<Product> products) throws PIRL.Database.Database_Exception, java.io.IOException
Clean_Up_Products
in interface CleanUp
Clean_Up_Products
in class Product_CleanUp
products
- - A Vector of Products to be removedPIRL.Database.Database_Exception
- if a database error occurs during the clean up process.java.io.IOException
- if the data or label files for a given product can not be
accessed or removed.public java.util.Vector<java.lang.String> Column_Names()
Product_CleanUp
Product_CleanUp.Find_Products(String, int, int)
method call.Column_Names
in interface CleanUp
Column_Names
in class Product_CleanUp
CleanUp.Find_Products(String, int, int)
products has not yet been called.public java.util.Vector<java.util.Vector<java.lang.String>> Find_Products(java.lang.String observation_id, int start_orbit, int end_orbit) throws PIRL.Database.Database_Exception
Product_CleanUp
Find_Products
in interface CleanUp
Find_Products
in class Product_CleanUp
PIRL.Database.Database_Exception
- if a database error occurs during the searchpublic Product Product_Data(java.lang.String product_id, java.lang.String version, java.lang.String type) throws PIRL.Database.Database_Exception
Product_CleanUp
Product_Data
in interface CleanUp
Product_Data
in class Product_CleanUp
product_id
- - the product_id to retrieve information forversion
- - the version of the producttype
- - the type of productPIRL.Database.Database_Exception
- - if an error occurs while retrieving product
information from the database.public void Create_Archive_Table() throws PIRL.Database.Database_Exception
CleanUp
Create_Archive_Table
in interface CleanUp
PIRL.Database.Database_Exception
- if an sql error or database access problem occurs.public void Drop_Archive_Table() throws PIRL.Database.Database_Exception
CleanUp
Drop_Archive_Table
in interface CleanUp
PIRL.Database.Database_Exception
- if the database operation can not be executed.public static void main(java.lang.String[] args)
args
- Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona