Class NARFileManager

java.lang.Object
com.nt.udc.nar.NARStreamHandler
com.nt.udc.nar.NARFileManager
All Implemented Interfaces:
DataProviderIfc, DataReceiverIfc, DCStreamHandler, FileDataProviderIfc, FileDataReceiverIfc
Direct Known Subclasses:
NARFileManagerMT

public class NARFileManager extends NARStreamHandler implements DataReceiverIfc, DataProviderIfc
Manages a node's NAR input files and NAR output files. This class is also responsible for routing to specific NAR output files, if desired.
  • Field Details

    • dataProvider

      protected DataProviderIfc dataProvider
      Reference to the object providing data to this NAR router.
    • dataReceiver

      protected DataReceiverIfc dataReceiver
      Reference to the object receiving data from this NAR router.
    • fileDataProvider

      protected FileDataProviderIfc fileDataProvider
      Reference to the object providing file data to this NAR router.
    • fileDataReceiver

      protected FileDataReceiverIfc fileDataReceiver
      Reference to the object receiving file data from this NAR router.
  • Constructor Details

    • NARFileManager

      public NARFileManager(DCNode dcNode)
      Constructs a NARFileManager with the given node. This NARFileManager will monitor the node's input/output directories (where appropriate), provide NAR input objects, and provide the mechanisms to send a processed NAR to the next node in the chain, possibly through routing.
      Parameters:
      dcNode - Node to manage
    • NARFileManager

      public NARFileManager(DCNode dcNode, boolean isMultiThreaded, int threadCount, int currThread)
    • NARFileManager

      public NARFileManager(DCNode dcNode, boolean isMultiThreaded, int threadCount, int currThread, boolean isOrdered)
    • NARFileManager

      public NARFileManager(DCNode dcNode, boolean createWriter)
    • NARFileManager

      public NARFileManager(DCNode dcNode, boolean createWriter, boolean isMultiThreaded, int threadCount, int currThread, boolean isOrdered)
  • Method Details