public class Processing_Mode
extends java.lang.Object
Processing_Mode is an application for managing the "processing mode" of an individual observation running through the HiRISE pipelines.
In conjunction with a properly defined database table, this application can:
Modifier and Type | Class and Description |
---|---|
static class |
Processing_Mode.ExitCode
Application exit status values.
|
static class |
Processing_Mode.ProcessingMode
An enumeration of the allowed processing modes.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEBUG_TABLE_OPTIONS |
static java.lang.String |
ID |
static java.lang.String |
UNSET_MODE_STRING
This is the string that will be output if the queried observation
has no mode setting currently defined for it.
|
Constructor and Description |
---|
Processing_Mode(PIRL.Configuration.Configuration con,
java.lang.String cat)
Instantiate a Processing_Mode object with a specified configuration and
database catalog
param con - the Configuration
|
Modifier and Type | Method and Description |
---|---|
Processing_Mode.ProcessingMode |
getMode(java.lang.String observationId)
Get the processing mode of the input observation id.
|
static void |
main(java.lang.String[] args) |
boolean |
removeEntry(java.lang.String id)
Takes the given observation id and removes it's corresponding entry from
the Processing_Modes table
|
void |
setQueryMode(Processing_Mode.ProcessingMode mode)
Set the processing mode to be utilized for this instance.
|
boolean |
writeEntry(java.lang.String id,
Processing_Mode.ProcessingMode mode)
The given observation id and mode are first checked to see if the mode
is already set on the observation.
|
public static final java.lang.String ID
public static final java.lang.String DEBUG_TABLE_OPTIONS
public static final java.lang.String UNSET_MODE_STRING
public Processing_Mode(PIRL.Configuration.Configuration con, java.lang.String cat) throws PIRL.Database.Database_Exception, PIRL.Configuration.Configuration_Exception
cat
- - the catalog in the database containing the processing mode tablePIRL.Database.Database_Exception
- if the database connection can not be establishedPIRL.Configuration.Configuration_Exception
- if there is missing or incomplete database
connection information in the configurationpublic void setQueryMode(Processing_Mode.ProcessingMode mode)
mode
- the processing modeProcessing_Mode.ProcessingMode
public Processing_Mode.ProcessingMode getMode(java.lang.String observationId) throws PIRL.Database.Database_Exception
observationId
- - the observation id to retrieve the processing
mode forPIRL.Database.Database_Exception
Processing_Mode.ProcessingMode
public boolean writeEntry(java.lang.String id, Processing_Mode.ProcessingMode mode) throws PIRL.Database.Database_Exception, java.lang.Exception
id
- - Observation idmode
- - String modePIRL.Database.Database_Exception
- if a database error occursjava.lang.Exception
- if the processing mode is already set to a mode
different from the input modepublic boolean removeEntry(java.lang.String id) throws PIRL.Database.Database_Exception
id
- - the observation id to be removedPIRL.Database.Database_Exception
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