@MXBean public interface AlertMonitorMXBean
AlertMonitor
which accumulates and
logs abnormal events such as IOExceptions and measurements outside of
expected thresholds.Modifier and Type | Field and Description |
---|---|
static String |
CLEANUP_CATEGORY |
static String |
EXTEND_VOLUME_CATEGORY |
static String |
FLUSH_STATISTICS_CATEGORY |
static String |
JOURNAL_CATEGORY |
static String |
MANY_JOURNAL_FILES |
static String |
MISSING_VOLUME_CATEGORY |
static String |
MXBEAN_NAME |
static String |
READ_PAGE_CATEGORY |
static String |
WRITE_PAGE_CATEGORY |
Modifier and Type | Method and Description |
---|---|
String |
getAlertLevel()
Current maximum AlertLevel in this monitor as a String: one of NORMAL,
WARN or ERROR
|
String |
getDetailedHistory(String category)
Return a detailed description, including first and recent occurrences of
events within the History for the specified category.
|
long |
getErrorLogTimeInterval() |
int |
getHistoryLength() |
String |
getSummary()
Return a summary of this AlertMonitor's current state.
|
long |
getWarnLogTimeInterval() |
void |
poll(boolean force)
Called periodically to emit log messages
|
void |
reset()
Restore this alert monitor to its initial state at level
AlertMonitor.AlertLevel.NORMAL with no history. |
void |
setErrorLogTimeInterval(long errorLogTimeInterval)
Set the interval between successive notifications for this monitor when
its
AlertMonitor.AlertLevel.ERROR . |
void |
setHistoryLength(int historyLength)
Set the number of events per category on which to keep a complete
history.
|
void |
setWarnLogTimeInterval(long warnLogTimeInterval)
Set the interval between successive notifications for this monitor when
its
AlertMonitor.AlertLevel.WARN . |
static final String MXBEAN_NAME
static final String MANY_JOURNAL_FILES
static final String JOURNAL_CATEGORY
static final String WRITE_PAGE_CATEGORY
static final String READ_PAGE_CATEGORY
static final String EXTEND_VOLUME_CATEGORY
static final String FLUSH_STATISTICS_CATEGORY
static final String CLEANUP_CATEGORY
static final String MISSING_VOLUME_CATEGORY
String getAlertLevel()
void reset()
AlertMonitor.AlertLevel.NORMAL
with no history.long getWarnLogTimeInterval()
AlertMonitor.AlertLevel.WARN
.void setWarnLogTimeInterval(long warnLogTimeInterval)
AlertMonitor.AlertLevel.WARN
.warnLogTimeInterval
- the interval in millisecondslong getErrorLogTimeInterval()
AlertMonitor.AlertLevel.ERROR
.void setErrorLogTimeInterval(long errorLogTimeInterval)
AlertMonitor.AlertLevel.ERROR
.errorLogTimeInterval
- the interval in millisecondsint getHistoryLength()
void setHistoryLength(int historyLength)
historyLength
- the historyLength to setString getSummary()
String getDetailedHistory(String category)
null
.category
- the category namevoid poll(boolean force)
force
- Whether to force notifications to be issued immediatelCopyright © 2025 Open Identity Platform Community. All rights reserved.