public AMQReader(File file,
String selector) throws IOException, InvalidSelectorException {
String str = selector != null ? selector.trim() : null;
if (str != null && str.length() > 0) {
this.expression=SelectorParser.parse(str);
}
dataManager = new AsyncDataManager();
dataManager.setArchiveDataLogs(false);
if (file.isDirectory()) {
dataManager.setDirectory(file);
} else {
dataManager.setDirectory(file.getParentFile());
dataManager.setDirectoryArchive(file);
this.file = file;
}
dataManager.start();
}
Create the AMQReader to read a directory of amq data logs - or an
individual data log file Parameters:
file - the directory - or file
selector - the JMS selector or null to select all
Throws:
IOException -
InvalidSelectorException -
|