Package com.nt.udc.oi.node.nar
Class NAROIFormatter
java.lang.Object
com.nt.udc.ndk.node.OIFileFormatter
com.nt.udc.oi.node.nar.NAROIFormatter
This class is responsible for properly formatting the output
files of the NAR OI node. NARs are written as an array of
bytes.
-
Field Summary
Fields inherited from class com.nt.udc.ndk.node.OIFileFormatter
emptyFile, errMesg, logger, writer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setNARSPerFile
(int numNARs) This method sets the maximum number of NARs to be written to each file.void
writeToFile
(DCFieldContainer record) This method will write the NAR (as an array of bytes) to the output file.Methods inherited from class com.nt.udc.ndk.node.OIFileFormatter
fileClosing, fileOpening, getFileWriter, getFtpPusher, isHealthy, putToFile, readyToCycle, setFtpPusher, shutdown
-
Constructor Details
-
NAROIFormatter
Constructor- Parameters:
logger
- LoggerIfc() object providing access to the node's log fileoiFileWriter
- OIFileWriter() object responsible for file output and managing the output files.
-
-
Method Details
-
writeToFile
This method will write the NAR (as an array of bytes) to the output file.- Specified by:
writeToFile
in classOIFileFormatter
- Throws:
IOException
-
setNARSPerFile
public void setNARSPerFile(int numNARs) This method sets the maximum number of NARs to be written to each file.
-