Package com.nt.udc.general
Class NARComparator
java.lang.Object
com.nt.udc.general.NARComparator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNAR[]getNARFromFile(String narFile) Get NARs from a file.File[]Lists all files in the given directory that match one or more suffixes.static voidMain method to start the NARComparator.voidProcess NAR files.Set the logger instance.
-
Field Details
-
DBG_ON
-
SESSIONID
-
STATUS
-
UsageResponse
-
DEFAULT_SUPPRESS_ALARM
- See Also:
-
SUPPRESS_MUTILPLE_ALARMS
- See Also:
-
-
Constructor Details
-
NARComparator
public NARComparator() -
NARComparator
Constructor with command line arguments.- Parameters:
args- Command line arguments- Throws:
Exception- If there's an issue parsing the command line arguments
-
-
Method Details
-
main
Main method to start the NARComparator.- Parameters:
args- Command line arguments
-
processNars
public void processNars()Process NAR files. -
listFilesWithSuffixes
Lists all files in the given directory that match one or more suffixes.- Parameters:
dir- the directory to searchfileSuffixes- comma-separated list of suffixes (e.g. ".txt,.log,.csv")- Returns:
- array of matching files, or an empty array if none found
-
getNARFromFile
Get NARs from a file.- Parameters:
narFile- NAR file- Returns:
- NARs from the file
-
setLogger
Set the logger instance.- Parameters:
loggerObj- Logger object- Returns:
- Logger instance
-