|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame PIRL.Conductor.Pipeline_Source_Manager
public class Pipeline_Source_Manager
The Pipeline_Source_Manager manages unprocessed source records in a Conductor pipeline Sources table.
Pipeline_Source_Manager provides a GUI to view any unprocessed source
records in any Conductor Sources table accessible within the catalog
specified by the CATALOG parameter in a PVL-style configuration file
specified at the time the application is launched. The operator can
optionally delay the processing of selected sources by setting the
Conductor_ID to the value specified in the static variable DELAY_PROCESSING_STRING
, or release a delayed source record by
resetting the Conductor_ID to NULL. Source records can also be
deleted from Sources tables, but will not remove the source
file specified in the Source_Pathname from the filesystem.
Note: The application assumes that all pipeline source tables end with the word "Sources."
The usage
description specifies the application
command line syntax and describes the GUI elements.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
DEFAULT_CONFIGURATION_FILENAME
The default configuration file. |
static String |
DELAY_PROCESSING_STRING
This string is used to update the Conductor_ID of a source to indicate that processing of the source record should be delayed. |
static int |
EXIT_COMMAND_LINE_SYNTAX_ERROR
Exit Status Values |
static int |
EXIT_CONFIGURATION_ERROR
Exit Status Values |
static int |
EXIT_DATABASE_ERROR
Exit Status Values |
static int |
EXIT_SUCCESS
Exit Status Values |
static String |
ID
Class ID |
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Pipeline_Source_Manager(Configuration configuration)
Construct a Pipeline_Source_Manager using a Configuration. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
|
boolean |
Delay_Source(int source_number,
String table)
This method will set the Conductor ID field of a source record to the DELAY_PROCESSING_STRING to cause a conductor to skip the specified
source. |
boolean |
Delete_Source(int source_number,
String table)
This method deletes a source number from a specified table. |
static void |
main(String[] arguments)
Manage sources in a Conductor Pipeline Source Table. |
boolean |
Process_Source(int source_number,
String table)
This method makes a source available for processing that was delayed using the Delay_Source(int, String) method. |
static void |
Usage()
Prints the command line usage syntax. |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static final String ID
public static final String DEFAULT_CONFIGURATION_FILENAME
public static final String DELAY_PROCESSING_STRING
The "clear delayed source" functionality will only operate on sources with a Conductor_ID that matches this value.
public static final int EXIT_SUCCESS
public static final int EXIT_DATABASE_ERROR
public static final int EXIT_CONFIGURATION_ERROR
public static final int EXIT_COMMAND_LINE_SYNTAX_ERROR
Constructor Detail |
---|
public Pipeline_Source_Manager(Configuration configuration)
A database will be established and the GUI will be displayed.
configuration
- Method Detail |
---|
public boolean Delete_Source(int source_number, String table) throws Database_Exception
source_number
- - the source_number of the source to be deleted.table
- - the table the source is to be deleted from
Database_Exception
- if a database error occurs while attempting to
delete the source.public boolean Process_Source(int source_number, String table) throws Database_Exception
Delay_Source(int, String)
method. It will only reset sources for which the
Conductor ID field has been set to the value of "Source Delayed"
source_number
- - the source_number to operate ontable
- - the table containing the sources to be reset
Database_Exception
- if a database error occurred during the update.Delay_Source(int, String)
,
DELAY_PROCESSING_STRING
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
public boolean Delay_Source(int source_number, String table) throws Database_Exception
DELAY_PROCESSING_STRING
to cause a conductor to skip the specified
source. This gives the operator a very limited ability to prioritize sources by
delaying the processing of some source fields while allowing others to be
processed.
source_number
- - the source number to be delayedtable
- - the pipeline source table containing the source to be delayed
Database_Exception
- if a database error occurs while attempting to update
the source record.Process_Source(int, String)
,
DELAY_PROCESSING_STRING
public static void main(String[] arguments)
The command line syntax is described in the Usage()
method.
Exit Status Values:
EXIT_SUCCESS
EXIT_DATABASE_ERROR
EXIT_CONFIGURATION_ERROR
EXIT_COMMAND_LINE_SYNTAX_ERROR
arguments
- The command line arguments
.public static void Usage()
Usage: Pipeline_Source_Manager <Options> Options - [-Configuration <source> Default: Database.conf [-Help]
Pipeline_Source_Manager requires a Configuration file which contains database and catalog connection information. The provider Conductor.conf file is a suitable template to use for this purpose.
Note: If a Conductor has started processing a source record after the time that a Sources table was read from the database, the Pipeline_Source_Manager will not operate on that source record. This prevents the Conductor_ID from being set to a delayed status if a Conductor has already acquired the source record.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |