Package com.nt.udc.oi.node.geneva
Class GenevaOIControlFile
java.lang.Object
com.nt.udc.oi.node.geneva.GenevaOIControlFile
- All Implemented Interfaces:
GenevaFieldsIfc
-
Field Summary
Fields inherited from interface com.nt.udc.oi.node.geneva.GenevaFieldsIfc
AUDIT_1_FTR, AUDIT_2_FTR, CHAR_FTR, CHAR_SET_HDR, CHECKSUM_FTR, CONTROL_DATA_EXT, END_FTR, EOF_FTR, ERR_EXT, FILE_GRP_NUM_HDR, FILE_IN_GRP_NUM_HDR, FOOTER_FTR, FORMAT_HDR, GENEVA_HDR, LINES_FTR, SEC_CHECKSUM_FTR, SOURCE_HDR, SUBTYPE_HDR, TAG_HDR, TOT_FILES_IN_GRP_HDR, TYPE_HDR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the name of the file after ftpget the name of the file before ftpmakeFile()
creates the control filevoid
setControlTag
(String controlTag) void
setFileGroupName
(String fileGroupName) void
setFileGroupNum
(String fileGroup) void
set the files to be ftp'dvoid
set the files to be included in the control filestatic void
writeControlData
(String dir, String filename, String subType, String checksum, String securityChecksum, String auditValue1, String auditValue2, String fileGroupName, String fileGroupNum, String controlTag, String fileType, LoggerIfc logger) writes out the data required for the control file
-
Constructor Details
-
GenevaOIControlFile
constructor- Parameters:
logger
- log errors/warning to thisoutDir
- output directory - where data files and control files are
-
-
Method Details
-
setFileGroupName
-
getFileGroupName
-
setFileGroupNum
-
getFileGroupNum
-
setControlTag
-
setFiles
set the files to be included in the control file- Parameters:
files
- - array of filenames
-
setFiles
set the files to be ftp'd- Parameters:
filenames
- array of file names
-
getPreFTPName
get the name of the file before ftp -
getPostFTPName
get the name of the file after ftp -
makeFile
creates the control file- Returns:
- - file name of the control file
-
writeControlData
public static void writeControlData(String dir, String filename, String subType, String checksum, String securityChecksum, String auditValue1, String auditValue2, String fileGroupName, String fileGroupNum, String controlTag, String fileType, LoggerIfc logger) throws IOException writes out the data required for the control file- Parameters:
dir
- Dircectory to write out the datafilename
- file to place the data inchecksum
- CheckSum for the event FilesecurityChecksum
- security checksum for event fileauditValue1
- audit value of the event fileauditValue2
- audit value of the event filefileGroupName
- group name for the control filefileGroupNum
- group number for the control filecontrolTag
- tag for the control filefileType
- type of file as in 'Event_File' or 'Mpe_File'subTyp
- subType for the eventFile- Throws:
IOException
- See Also:
-