public interface RepositoryMonitor
| Modifier and Type | Field and Description |
|---|---|
static Set<DurationMetric> |
ALL_DURATION_METRICS |
static Set<ValueMetric> |
ALL_VALUE_METRICS |
static Set<Window> |
ALL_WINDOWS |
static RepositoryMonitor |
EMPTY_MONITOR
A monitor without history.
|
| Modifier and Type | Method and Description |
|---|---|
Set<DurationMetric> |
getAvailableDurationMetrics()
Get the DurationMetric enumerations that are available for use by the caller with
getHistory(DurationMetric, Window). |
Set<ValueMetric> |
getAvailableValueMetrics()
Get the ValueMetric enumerations that are available for use by the caller with
getHistory(ValueMetric, Window). |
Set<Window> |
getAvailableWindows()
Get the Window enumerations that are available for use by the caller with
getHistory(DurationMetric, Window) and
getHistory(ValueMetric, Window). |
History |
getHistory(DurationMetric metric,
Window windowInTime)
Get the statics for the specified duration metric during the given window in time.
|
History |
getHistory(ValueMetric metric,
Window windowInTime)
Get the statics for the specified value metric during the given window in time.
|
DurationActivity[] |
getLongestRunning(DurationMetric metric)
Get the longest-running activities recorded for the specified metric.
|
static final Set<DurationMetric> ALL_DURATION_METRICS
static final Set<ValueMetric> ALL_VALUE_METRICS
static final RepositoryMonitor EMPTY_MONITOR
Set<ValueMetric> getAvailableValueMetrics()
getHistory(ValueMetric, Window).getHistory(ValueMetric, Window)Set<DurationMetric> getAvailableDurationMetrics()
getHistory(DurationMetric, Window).getHistory(DurationMetric, Window),
getLongestRunning(DurationMetric)Set<Window> getAvailableWindows()
getHistory(DurationMetric, Window) and
getHistory(ValueMetric, Window).getHistory(DurationMetric, Window),
getHistory(ValueMetric, Window)History getHistory(ValueMetric metric, Window windowInTime) throws AccessDeniedException, RepositoryException
metric - the value metric; may not be nullwindowInTime - the window specifying which statistics are to be returned; may not be nullAccessDeniedException - if the session does not have privileges to monitor the repositoryRepositoryException - if there is an error obtaining the historygetAvailableValueMetrics(),
getAvailableWindows()History getHistory(DurationMetric metric, Window windowInTime) throws AccessDeniedException, RepositoryException
metric - the duration metric; may not be nullwindowInTime - the window specifying which statistics are to be returned; may not be nullAccessDeniedException - if the session does not have privileges to monitor the repositoryRepositoryException - if there is an error obtaining the historygetAvailableDurationMetrics(),
getAvailableWindows()DurationActivity[] getLongestRunning(DurationMetric metric) throws AccessDeniedException, RepositoryException
metric - the duration metric; may not be nullAccessDeniedException - if the session does not have privileges to monitor the repositoryRepositoryException - if there is an error obtaining the historygetAvailableDurationMetrics()Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.