Package com.nt.udc.io

Class COSAROutput

java.lang.Object
com.nt.udc.io.COSAROutput
All Implemented Interfaces:
IOSAROutput

public class COSAROutput extends Object implements IOSAROutput
This class is used to assemble together OSAR Attributes into OSAR and send them to the class implementing IDataSink for storage.
  • Field Details

    • m_debugLevel

      protected static int m_debugLevel
    • m_iLogger

      protected ILogger m_iLogger
      This member is used to report errors and warnings.
    • m_iDataSink

      protected IDataSink m_iDataSink
      This member is used to send OSARs in custom format to
  • Constructor Details

    • COSAROutput

      public COSAROutput(ILogger iLogger)
  • Method Details

    • getDebugLevel

      public static int getDebugLevel()
    • getDataSink

      public IDataSink getDataSink()
    • setDebugLevel

      public static void setDebugLevel(int debugLevel)
    • setDataSink

      public void setDataSink(IDataSink iDataSink)
      Description copied from interface: IOSAROutput
      This function is used to initialize the data sink
      Specified by:
      setDataSink in interface IOSAROutput
    • storeOSAR

      public boolean storeOSAR(COSAR osar)
      Description copied from interface: IOSAROutput
      This function is used to store records
      Specified by:
      storeOSAR in interface IOSAROutput
    • isHealthy

      public boolean isHealthy()
      This method is used to check if the COSAROutput is fully functional. It is to be overridden in subclasses.
      Specified by:
      isHealthy in interface IOSAROutput
    • error

      protected void error(String fName, String msg)
    • debug

      protected void debug(String fName, String msg)