Class GenevaOIControlFile

java.lang.Object
com.nt.udc.oi.node.geneva.GenevaOIControlFile
All Implemented Interfaces:
GenevaFieldsIfc

public class GenevaOIControlFile extends Object implements GenevaFieldsIfc
  • Constructor Details

    • GenevaOIControlFile

      public GenevaOIControlFile(LoggerIfc logger, String outDir)
      constructor
      Parameters:
      logger - log errors/warning to this
      outDir - output directory - where data files and control files are
  • Method Details

    • setFileGroupName

      public void setFileGroupName(String fileGroupName)
    • getFileGroupName

      public String getFileGroupName()
    • setFileGroupNum

      public void setFileGroupNum(String fileGroup)
    • getFileGroupNum

      public String getFileGroupNum()
    • setControlTag

      public void setControlTag(String controlTag)
    • setFiles

      public void setFiles(Vector files)
      set the files to be included in the control file
      Parameters:
      files - - array of filenames
    • setFiles

      public void setFiles(String[] files)
      set the files to be ftp'd
      Parameters:
      filenames - array of file names
    • getPreFTPName

      public String getPreFTPName()
      get the name of the file before ftp
    • getPostFTPName

      public String getPostFTPName()
      get the name of the file after ftp
    • makeFile

      public String 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 data
      filename - file to place the data in
      checksum - CheckSum for the event File
      securityChecksum - security checksum for event file
      auditValue1 - audit value of the event file
      auditValue2 - audit value of the event file
      fileGroupName - group name for the control file
      fileGroupNum - group number for the control file
      controlTag - tag for the control file
      fileType - type of file as in 'Event_File' or 'Mpe_File'
      subTyp - subType for the eventFile
      Throws:
      IOException
      See Also:
      • readFile(java.lang.String)