Package com.nt.udc.admin.server
Class RuleManager
java.lang.Object
com.nt.udc.admin.server.RuleManager
-
Constructor Summary
ConstructorsConstructorDescriptionReads the current contents of the "rules" directory (and all sub-dirs) and adds each rule file to theruleTableusing the name of the rule file as the key and adding the lastModified time of the file. -
Method Summary
Modifier and TypeMethodDescriptionvoidcompileNPLFile(String fileName, String pkgName, String outDir) booleanfileChanged(String fileName) Indicates whether the given fileName has been updatedvoidupdateModifiedTime(String fileName) Updates the lastModified time of the given file in theruleTable
-
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 theruleTableusing the name of the rule file as the key and adding the lastModified time of the file.- Throws:
IOException- ifruleDirdoes not exist
-
-
Method Details
-
fileChanged
Indicates whether the given fileName has been updated -
updateModifiedTime
Updates the lastModified time of the given file in theruleTable- Throws:
IOException
-
compileNPLFile
- Throws:
BulkOpException
-