Class NARXMLOIFileWriter

java.lang.Object
com.nt.udc.ndk.util.OIFileWriter
com.nt.udc.oi.node.narxml.NARXMLOIFileWriter
All Implemented Interfaces:
StateBufferSaveable

public class NARXMLOIFileWriter extends OIFileWriter
  • Constructor Details

    • NARXMLOIFileWriter

      public NARXMLOIFileWriter(LoggerIfc lgr, String filedir, String filename, String currext, String doneext, String timeper, StateManagementIfc stateMgr, int maxrecs, String schemaURL) throws NodeStartException
      Construct a new OIFileWriter to be used within an OITransport object. Files will be created based upon the provided configuration parameters. The writer can be configured to write the incoming data as Strings or as an array of bytes. Additionally, a simple Thread() is started to periodically check the time period to determine if the output file is ready to be cycled. When the OITransport() is being shutdown, the shutdown() method of this file writer should be called to stop this thread.
      Parameters:
      filedir - Name of the output directory in which to write files
      filename - File name prefix, to be combined with a timestamp to create a unique file name
      currext - File name extension which indicates the active file
      doneext - File name extension which indicates files that have been completed
      timeper - Period of time a file remains active until it is cycled out
      stateMgr - An interface used to manage state recovery
      maxrecs - Maximum number of records per file.
      schemaURL - The XML schema name space location
      logger - Reference to the log methods of the node
      Throws:
      NodeStartException
  • Method Details