@MXBean
public interface SystemMonitorMXBean
The MXbean emits a notification when a warning is added to the logging cache by the system monitor.
The userdata returned in the notification is an instance of LogEntry.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MXBEAN_OBJECT_NAME
The object name by which a JMX client can find the SystemMonitorMXBean.
|
static java.lang.String |
NOTIFY_ADD
ADD notification type that a JMX client may listen to.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LogEntry> |
getWarnings()
Returns the list of all warnings collected on the server using the default locale and timezone.
|
java.util.List<LogEntry> |
getWarnings(java.lang.Long startTime,
java.lang.Long endTime)
Returns the list of warnings collected on the server using the default locale and time, and the specific time range.
|
java.util.List<LogEntry> |
getWarningsByType(java.lang.String type)
Returns the list of all warnings of the specific type collected on the server using the default locale and timezone.
|
void |
reset()
Resets the logging cache.
|
static final java.lang.String MXBEAN_OBJECT_NAME
static final java.lang.String NOTIFY_ADD
java.util.List<LogEntry> getWarnings()
java.util.List<LogEntry> getWarnings(java.lang.Long startTime, java.lang.Long endTime)
startTime - the beginning inclusive time in second of the entries. Set to null to begin from the first available entry.endTime - the ending inclusive time in second of the entries. Set to null to end at the last available entry.java.util.List<LogEntry> getWarningsByType(java.lang.String type)
type - the constant string like LogEntry#TYPE_ROUTED_WARNING, or LogEntry.TYPE_SYSTEM_WARNING
or for solution specific warnings, use [solution name]:LogEntry.TYPE_RUNTIME_WARNING,
for example, "hello_world_sln:runtimeWarning".void reset()
© Copyright IBM 2017