Class XMLFileTransport

All Implemented Interfaces:
DataProviderIfc, DCTransport, FileDataProviderIfc, Runnable

public class XMLFileTransport extends XMLTransport
This class is used to collect XML data from flat files.
  • Field Details

    • m_inputDir

      protected File m_inputDir
  • Constructor Details

  • Method Details

    • isHealthy

      public boolean isHealthy()
      This function checks if the transport is functional. In our case it means checking if the input directory is valid.
      Specified by:
      isHealthy in interface DCTransport
      Overrides:
      isHealthy in class EITransport
      Returns:
      true if the transport is healthy, false otherwise
    • initStreamSource

      protected void initStreamSource() throws Exception
      This function checks the configuration parameters and initializes the data source.
      Specified by:
      initStreamSource in class XMLTransport
      Throws:
      Exception