*/
final int journalFileCount = getJournalFileCount();
if (journalFileCount != _lastReportedJournalFileCount) {
if (journalFileCount > TOO_MANY_ERROR_THRESHOLD + _urgentFileCountThreshold) {
_persistit.getAlertMonitor()
.post(new Event(AlertLevel.ERROR, _persistit.getLogBase().tooManyJournalFilesError,
journalFileCount), AlertMonitor.MANY_JOURNAL_FILES);
} else if (journalFileCount > TOO_MANY_WARN_THRESHOLD + _urgentFileCountThreshold) {
_persistit.getAlertMonitor()
.post(new Event(AlertLevel.WARN, _persistit.getLogBase().tooManyJournalFilesWarning,
journalFileCount), AlertMonitor.MANY_JOURNAL_FILES);
} else {
_persistit.getAlertMonitor().post(
new Event(AlertLevel.NORMAL, _persistit.getLogBase().normalJournalFileCount, journalFileCount),
AlertMonitor.MANY_JOURNAL_FILES);
}
_lastReportedJournalFileCount = journalFileCount;
}
}