Class LDAPEnhancerNode

All Implemented Interfaces:
AdminIfc, ConfigIfc, LoggerIfc, NodeHealthIfc, NodeStateManagementIfc, PropertyIfc, StateManagementIfc

public class LDAPEnhancerNode extends FileEnhancerNode
This is an Extension of the FileEnhancerNode, with the addition of support for an LDAP Loader. The LDAP Loader populates the lookup file that the File Enhancer uses. For the format of that file, see com.nt.udc.processor.FileEnhancer.FileEnhancerNode.
  • Constructor Details

    • LDAPEnhancerNode

      public LDAPEnhancerNode() throws NodeStartException
      Default Constructor.
      Throws:
      NodeStartException
    • LDAPEnhancerNode

      public LDAPEnhancerNode(String[] args) throws NodeStartException
      Constructor for the LDAPEnhancerNode. Sets up an and sets the DCFieldContainer to be a NAR. At the end of the constructor the node is started.
      Parameters:
      args - Passed to super class ProcessorNode
      Throws:
      NodeStartException
  • Method Details

    • shutdown

      public void shutdown()
      Performs the necessary tasks to properly shutdown the node.
      Specified by:
      shutdown in interface AdminIfc
      Overrides:
      shutdown in class FileEnhancerNode
    • getMinorType

      public String getMinorType()
      Returns the type name of the NPLProcessor node.
      Overrides:
      getMinorType in class FileEnhancerNode
      Returns:
      Returns the minor type identifier for this node.
    • getConfigDataGuiClass

      public String getConfigDataGuiClass()
      Returns the name of the NPLFieldProcessor Config Data GUI class.
      Overrides:
      getConfigDataGuiClass in class FileEnhancerNode
      Returns:
      Returns the class name of the DCNodeConfigGUI object used by the node.
    • getCfgData

      protected void getCfgData()
      Reads the applicable configuration data through the ConfigIfc interface
      Overrides:
      getCfgData in class FileEnhancerNode
    • init

      protected void init()
      Void method that should be implemented by classes derived from NPLProcessorNode. The intent of this method is to give a place to implement construction steps that need to occur prior to the start of the FieldProcessorThread.
      Overrides:
      init in class FileEnhancerNode
    • setLoader

      public void setLoader(LDAPLoader ll)
    • getLoader

      public LDAPLoader getLoader()
    • setLoaderThread

      public void setLoaderThread(LDAPLoader ll)
      Sets the Lookup Table Reader to run within its own thread.
      Parameters:
      lrt - A runnable LookupReaderThread object.
    • getLoaderThread

      public Thread getLoaderThread()
      Returns:
      Returns the thread which is executing the LookupReader.
    • main

      public static void main(String[] args)
      The main method is useful for debugging and development purposes. However, this method will never actually be called when the node is run within the actual application. The node is a Thread in the application, rather than a process.
    • isHealthy

      public boolean isHealthy()
      This method is used to check if the node is fully functional.
      Specified by:
      isHealthy in interface NodeHealthIfc
      Overrides:
      isHealthy in class FileEnhancerNode
      Returns:
      true if the node is fully functional (healthy), false otherwise