Class OSANode

java.lang.Object
com.nt.udc.osanode.OSANode
All Implemented Interfaces:
AdminIfc, OSARemoteAdminIfc
Direct Known Subclasses:
OSAOiNode

public abstract class OSANode extends Object implements OSARemoteAdminIfc
  • Field Details

    • logger

      protected Logger logger
    • config

      protected Config config
    • narRouter

      protected OSARFileMngr narRouter
    • processingInterval

      protected long processingInterval
    • configFile

      protected File configFile
    • configDir

      protected File configDir
    • inputDir

      protected File inputDir
    • outputDir

      protected File outputDir
    • scratchDir

      protected File scratchDir
    • backupDir

      protected File backupDir
    • logDir

      protected File logDir
    • nodeid

      protected String nodeid
    • shutdown

      protected boolean shutdown
    • NODEINIT

      public static final String NODEINIT
    • NODERECONFIG

      public static final String NODERECONFIG
  • Constructor Details

  • Method Details

    • initialize

      public void initialize()
      Specified by:
      initialize in interface AdminIfc
    • isShutdown

      protected boolean isShutdown()
    • getOSARs

      protected OSAR[] getOSARs()
    • deleteOSARs

      protected boolean deleteOSARs()
    • storeOSAR

      protected boolean storeOSAR(OSAR osar)
    • storeOSARs

      protected boolean storeOSARs(OSAR[] osars)
    • shutdown

      public void shutdown()
      Description copied from interface: AdminIfc
      Stops node processing
      Specified by:
      shutdown in interface AdminIfc
      Specified by:
      shutdown in interface OSARemoteAdminIfc
    • shuttingDown

      protected void shuttingDown()
    • clearStatus

      public void clearStatus(StatusMessage sm)
    • clearStatus

      public void clearStatus()
      Description copied from interface: AdminIfc
      Clears the status table for this node
      Specified by:
      clearStatus in interface AdminIfc
      Specified by:
      clearStatus in interface OSARemoteAdminIfc
    • getStatus

      public StatusMessage getStatus()
      Description copied from interface: AdminIfc
      Retrieves the most recent, worst status for this node
      Specified by:
      getStatus in interface AdminIfc
      Specified by:
      getStatus in interface OSARemoteAdminIfc
      Returns:
      StatusMessage reflecting the most recent, worst status for this node.
    • checkInputDir

      protected boolean checkInputDir()
    • reconfig

      public void reconfig()
      Specified by:
      reconfig in interface OSARemoteAdminIfc
    • isReconfigPending

      public boolean isReconfigPending()
      Specified by:
      isReconfigPending in interface OSARemoteAdminIfc
    • reconfigure

      public void reconfigure() throws NodeStartException
      Calls OSARemoteAdminIfc.reconfig()
      Specified by:
      reconfigure in interface AdminIfc
      Throws:
      NodeStartException
    • startup

      public void startup() throws NodeStartException
      Call that starts a node. Default implementation is empty.
      Specified by:
      startup in interface AdminIfc
      Throws:
      NodeStartException
    • getPerformanceMetrics

      public DCNodePerformanceIfc getPerformanceMetrics()
      Returns null
      Specified by:
      getPerformanceMetrics in interface AdminIfc
      Returns:
      Object representing the performance information for this node
    • getAndResetRecordStatistics

      public ReadOnlyStatisticsMonitorIfc getAndResetRecordStatistics()
      Description copied from interface: AdminIfc
      Retrieves record statistics for this node. (Record statistics are different from performance information, in that the record statistics get reset to 0 periodically, usually every hour.)
      Specified by:
      getAndResetRecordStatistics in interface AdminIfc
      Returns:
      An object that contains the statistics for the previous polling period.