Class RuleManager

java.lang.Object
com.nt.udc.admin.server.RuleManager

public class RuleManager extends Object
  • Constructor Details

    • RuleManager

      public RuleManager(String pDir, String homeDir, String ruleDirName, String configDir, LoggerIfc logger) throws IOException
      Reads the current contents of the "rules" directory (and all sub-dirs) and adds each rule file to the ruleTable using the name of the rule file as the key and adding the lastModified time of the file.
      Throws:
      IOException - if ruleDir does not exist
  • Method Details

    • fileChanged

      public boolean fileChanged(String fileName)
      Indicates whether the given fileName has been updated
    • updateModifiedTime

      public void updateModifiedTime(String fileName) throws IOException
      Updates the lastModified time of the given file in the ruleTable
      Throws:
      IOException
    • compileNPLFile

      public void compileNPLFile(String fileName, String pkgName, String outDir) throws BulkOpException
      Throws:
      BulkOpException