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 theruleTable
using the name of the rule file as the key and adding the lastModified time of the file. -
Method Summary
Modifier and TypeMethodDescriptionvoid
compileNPLFile
(String fileName, String pkgName, String outDir) boolean
fileChanged
(String fileName) Indicates whether the given fileName has been updatedvoid
updateModifiedTime
(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 theruleTable
using the name of the rule file as the key and adding the lastModified time of the file.- Throws:
IOException
- ifruleDir
does 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
-