public class OIFtpConfigGUI extends OINodeConfigGUI
Modifier and Type | Class and Description |
---|---|
class |
OIFtpConfigGUI.FileRetentionListener
This listener will be used enable/disable the File Retention fields.
|
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPRESSION_CHOICE
The parameter is used for compression
|
static java.lang.String |
CURR_FILE_EXTENSION
The parameter name indicating the file extension used to mark
the current output file.
|
static java.lang.String |
DAY |
static java.lang.String |
DONE_FILE_EXTENSION
The parameter name indicating the file extension used to mark
completed output files.
|
static java.lang.String |
FALSE |
static java.lang.String |
FILE_DIR
The parameter name indicating the node's output directory.
|
static java.lang.String |
FILE_NAME
The parameter name indicating the node's output file name.
|
static java.lang.String |
FILE_RETENTION_ACTION |
static java.lang.String |
FILE_RETENTION_ACTION_ARCHIVE |
static java.lang.String |
FILE_RETENTION_ACTION_DEFAULT |
static java.lang.String |
FILE_RETENTION_ACTION_DELETE |
static java.lang.String |
FILE_RETENTION_ARCHIVE_FOLDER |
static java.lang.String |
FILE_RETENTION_DAYS |
static java.lang.String |
FILE_RETENTION_DAYS_DEFAULT |
static java.lang.String |
FILE_RETENTION_FOLDER_DEFAULT |
static java.lang.String |
FILE_RETENTION_USED
The parameters used for processed files retention
|
static java.lang.String |
FTP_DIR
The parameter name indicating the directory on the remote
host in which to place the transferred files.
|
static java.lang.String |
FTP_EXTENSION
The parameter name indicating the file extension used to mark
transferred files.
|
static java.lang.String |
FTP_HOST
The parameter name indicating the remote server to which the
files will be transferred.
|
static java.lang.String |
FTP_PASSWD
The parameter name indicating the remote password for the FTP
session.
|
static java.lang.String |
FTP_PORT |
static java.lang.String |
FTP_SLEEP_TIME |
static java.lang.String |
FTP_USED
This parameter specifies whether ftp functionality is
required.
|
static java.lang.String |
FTP_USER
The parameter name indicating the remote login name for the
FTP session.
|
static java.lang.String |
GZIP |
static java.lang.String |
HOUR |
protected javax.swing.JRadioButton |
m_archiveFilesRadio |
protected javax.swing.JTextField |
m_archiveFolderJTF |
protected Cipher |
m_cipher
The parameter is used for password encryption / decryption
|
protected javax.swing.JComboBox |
m_compressionBox |
protected javax.swing.JTextField |
m_currFileJTF |
protected javax.swing.JRadioButton |
m_deleteFilesRadio |
protected javax.swing.JTextField |
m_doneFileJTF |
protected javax.swing.JTextField |
m_fileDirJTF |
protected javax.swing.JTextField |
m_fileNameJTF |
protected javax.swing.ButtonGroup |
m_fileRetentionActionGroup |
protected javax.swing.JCheckBox |
m_fileRetentionUsedCB |
protected javax.swing.JTextField |
m_ftpDirectoryJTF |
protected javax.swing.JTextField |
m_ftpExtensionJTF |
protected javax.swing.JTextField |
m_ftpHostJTF |
protected javax.swing.JPasswordField |
m_ftpPasswdJPF |
protected javax.swing.JTextField |
m_ftpPortJTF |
protected javax.swing.JComboBox |
m_ftpSleepTimeCB |
protected javax.swing.JCheckBox |
m_ftpUsedCB |
protected javax.swing.JTextField |
m_ftpUserJTF |
protected javax.swing.JTextField |
m_maxRecsPerFile |
protected javax.swing.JTextField |
m_retentionDaysJTF |
protected javax.swing.JLabel |
m_retentionDaysLabel |
protected javax.swing.JCheckBox |
m_sftpUsedCB |
protected javax.swing.JTextField |
m_timePeriodSMGIF |
protected javax.swing.JComboBox |
m_timeUnitBox |
protected static int |
MAX_SIZE_TIME_PERIOD |
static int |
MAXTHREAD_COUNT |
static java.lang.String |
MIN |
static int |
MINTHREAD_COUNT |
static java.lang.String |
MULTI_THREADED |
static java.lang.String |
NO_COMPRESSION |
static java.lang.String |
NONE |
static java.lang.String |
RECORD_ORDERING |
static java.lang.String |
SEC |
static java.lang.String |
SFTP_USED |
static java.lang.String |
THREAD_COUNT |
static java.lang.String |
TIME_PERIOD
The parameter name indicating the period of time between
cycling output files.
|
static java.lang.String |
TRUE |
static java.lang.String |
ZIP |
backupBox, backupLabel, bulkIOCheckBox, defaultFont, destGUI, fileLevelTransactionJLable, fileLevelTransactionLabel, fileLevelTransCheckBox, inputMonitorEnableField, inputMonitorTimeField, inputMonitorTimeUnitsField, narBackupBox, narBackupDaysField, narBackupDaysLabel, narBackupLabel, nodeConfig, nodeFieldsDirty, recordCountEnableField, tabbedPane
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
OIFtpConfigGUI(DCNodeConfigData nodeConfig) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
boolean |
allFieldsValid()
Validates the configuration parameters.
|
protected boolean |
allFileFieldsValid() |
protected boolean |
allFileRetentionFieldsValid()
This method validates the values entered in the File Retention panel.
|
protected boolean |
allFtpFieldsValid() |
protected void |
displayErrorMessage(java.lang.String message) |
void |
extendConfigGUI()
Create the node's configuration panel with the specific text
fields, check boxes, etc.
|
protected void |
ftpUsedAction()
This method is to be overridden in subclasses if
a new control is to be handled.
|
protected void |
getCompressionConfigData(DCNodeConfigData nodeData) |
protected long |
getDefaultSleepTime() |
protected void |
getFileConfigData(DCNodeConfigData nodeData) |
protected java.lang.String |
getFileOutputPanelName() |
protected void |
getFileRetentionConfigData(DCNodeConfigData nodeData) |
protected void |
getFTPConfigData(DCNodeConfigData nodeData) |
protected void |
getMultiThreadConfigData(DCNodeConfigData nodeData) |
void |
getNodeSpecificConfigData(DCNodeConfigData nodeData)
Sets the default values for the various configuration
parameters within the given
DCNodeConfigData
object. |
protected void |
initCipher()
Initializes the cipher utility if necessary
|
protected boolean |
isMultiThreadCountValid() |
protected void |
makeCompressionPanel() |
protected void |
makeFileOutputPanel() |
protected void |
makeFileOutputPanelComponents(java.util.Vector labels,
java.util.Vector components)
This method is to be overridden in the subclasses for changes in
the Output GUI.
|
protected void |
makeFileRetentionPanel()
This method is used to create File Retention panel.
|
protected javax.swing.JPanel |
makeFileRetentionPanel(boolean addToSuperPanel) |
protected void |
makeFTPPanel() |
protected void |
makeFTPPanelComponents(java.util.Vector ftpLabels,
java.util.Vector ftpComponents)
This method is to be overridden in the subclasses for changes in
the FTP GUI.
|
protected void |
makeMultiThreadPanel() |
protected void |
setCompressionDefaults() |
void |
setDefaults()
Sets the default values for the various configuration
parameters.
|
protected void |
setFileDefaults() |
protected void |
setFileRetentionDefaults() |
protected void |
setFtpDefaults() |
protected void |
setMultiThreadDefaults() |
protected boolean |
verifyFolders() |
getDCNodeConfigData, getMaxReadTimer, getMinReadTimer, getReadTimerValue, makeNodePanel, setMaxReadTimer, setMaxValueForReadTimer, setMinReadTimer, setRangeValues, setReadTimerValue
addGUIComponents, addInputMonitoringFieldsToPanel, addNarBackupCheckbox, addPanel, addScrollPanel, defaultValue, defaultValue, disableBackupCheckbox, enableBackupCheckbox, getBackupValue, getConfigActionObject, getDebugLevel, getDestinations, getMaxLogFileSize, getMaxLogSizeValue, getMaxValue, getMinLogFileSize, getMinValue, getNarBackupDaysValue, getNarBackupValue, getNodeDestinationsGUI, getNodeId, hasDestinations, init, isAnyConfigAction, makeIPAddressField, makeNumericTextField, makeNumericTextField, makeNumericTextField, makePanel, makePanel, makeTextField, makeTextField, setBackupValue, setConfigRange, setDebugLevel, setDestinations, setMaxLogFileSize, setMaxLogSizeValue, setMaxValueForLogSize, setMinLogFileSize, setNarBackupDaysValue, setNarBackupValue, setNodeId, setNodeInfo, validateConfig
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static java.lang.String DAY
public static java.lang.String HOUR
public static java.lang.String MIN
public static java.lang.String SEC
public static java.lang.String NONE
protected javax.swing.JTextField m_fileDirJTF
protected javax.swing.JTextField m_fileNameJTF
protected javax.swing.JTextField m_currFileJTF
protected javax.swing.JTextField m_doneFileJTF
protected javax.swing.JTextField m_timePeriodSMGIF
protected javax.swing.JTextField m_maxRecsPerFile
protected javax.swing.JComboBox m_timeUnitBox
protected javax.swing.JCheckBox m_ftpUsedCB
protected javax.swing.JTextField m_ftpHostJTF
protected javax.swing.JTextField m_ftpPortJTF
protected javax.swing.JTextField m_ftpUserJTF
protected javax.swing.JPasswordField m_ftpPasswdJPF
protected javax.swing.JTextField m_ftpDirectoryJTF
protected javax.swing.JTextField m_ftpExtensionJTF
protected javax.swing.JComboBox m_ftpSleepTimeCB
protected javax.swing.JCheckBox m_sftpUsedCB
protected javax.swing.JComboBox m_compressionBox
protected javax.swing.ButtonGroup m_fileRetentionActionGroup
protected javax.swing.JCheckBox m_fileRetentionUsedCB
protected javax.swing.JRadioButton m_deleteFilesRadio
protected javax.swing.JRadioButton m_archiveFilesRadio
protected javax.swing.JLabel m_retentionDaysLabel
protected javax.swing.JTextField m_retentionDaysJTF
protected javax.swing.JTextField m_archiveFolderJTF
public static final java.lang.String THREAD_COUNT
public static final java.lang.String MULTI_THREADED
public static final java.lang.String RECORD_ORDERING
public static final int MINTHREAD_COUNT
public static final int MAXTHREAD_COUNT
public static final java.lang.String FALSE
public static final java.lang.String TRUE
public static final java.lang.String FILE_DIR
public static final java.lang.String FILE_NAME
public static final java.lang.String CURR_FILE_EXTENSION
public static final java.lang.String DONE_FILE_EXTENSION
public static final java.lang.String TIME_PERIOD
protected static final int MAX_SIZE_TIME_PERIOD
public static final java.lang.String FTP_HOST
public static final java.lang.String FTP_PORT
public static final java.lang.String FTP_USER
public static final java.lang.String FTP_PASSWD
public static final java.lang.String FTP_DIR
public static final java.lang.String FTP_EXTENSION
public static final java.lang.String FTP_SLEEP_TIME
public static final java.lang.String FTP_USED
public static final java.lang.String SFTP_USED
protected Cipher m_cipher
public static final java.lang.String COMPRESSION_CHOICE
public static final java.lang.String NO_COMPRESSION
public static final java.lang.String ZIP
public static final java.lang.String GZIP
public static final java.lang.String FILE_RETENTION_USED
public static final java.lang.String FILE_RETENTION_DAYS
public static final java.lang.String FILE_RETENTION_ACTION
public static final java.lang.String FILE_RETENTION_ARCHIVE_FOLDER
public static final java.lang.String FILE_RETENTION_ACTION_DELETE
public static final java.lang.String FILE_RETENTION_ACTION_ARCHIVE
public static final java.lang.String FILE_RETENTION_ACTION_DEFAULT
public static final java.lang.String FILE_RETENTION_DAYS_DEFAULT
public static final java.lang.String FILE_RETENTION_FOLDER_DEFAULT
public OIFtpConfigGUI(DCNodeConfigData nodeConfig)
public void setDefaults()
setDefaults
in class OINodeConfigGUI
protected void setFileDefaults()
protected void setMultiThreadDefaults()
protected void setFtpDefaults()
protected void setCompressionDefaults()
protected void setFileRetentionDefaults()
public boolean allFieldsValid()
allFieldsValid
in interface DCNodeConfigGUIIfc
allFieldsValid
in class DCNodeConfigGUI
True
, if all parameters are valid.protected boolean allFtpFieldsValid()
protected boolean allFileFieldsValid()
protected boolean allFileRetentionFieldsValid()
protected boolean isMultiThreadCountValid()
protected boolean verifyFolders()
public void getNodeSpecificConfigData(DCNodeConfigData nodeData)
DCNodeConfigData
object.getNodeSpecificConfigData
in interface DCNodeConfigGUIIfc
getNodeSpecificConfigData
in class OINodeConfigGUI
public void extendConfigGUI()
extendConfigGUI
in interface DCNodeConfigGUIIfc
extendConfigGUI
in class OINodeConfigGUI
public void actionPerformed(java.awt.event.ActionEvent event)
protected void getFileConfigData(DCNodeConfigData nodeData)
protected void getMultiThreadConfigData(DCNodeConfigData nodeData)
protected void getFTPConfigData(DCNodeConfigData nodeData)
protected void getFileRetentionConfigData(DCNodeConfigData nodeData)
protected void getCompressionConfigData(DCNodeConfigData nodeData)
protected void makeFileOutputPanel()
protected void makeFileRetentionPanel()
protected javax.swing.JPanel makeFileRetentionPanel(boolean addToSuperPanel)
protected void makeFileOutputPanelComponents(java.util.Vector labels, java.util.Vector components)
protected void makeMultiThreadPanel()
protected java.lang.String getFileOutputPanelName()
protected void makeCompressionPanel()
protected void makeFTPPanel()
protected void makeFTPPanelComponents(java.util.Vector ftpLabels, java.util.Vector ftpComponents)
protected void initCipher()
protected long getDefaultSleepTime()
protected void displayErrorMessage(java.lang.String message)
protected void ftpUsedAction()