public class JcrRepositoryMonitor extends Object implements RepositoryMonitor
ALL_DURATION_METRICS, ALL_VALUE_METRICS, ALL_WINDOWS, EMPTY_MONITOR| Modifier | Constructor and Description |
|---|---|
protected |
JcrRepositoryMonitor(JcrSession session) |
| Modifier and Type | Method and Description |
|---|---|
Set<DurationMetric> |
getAvailableDurationMetrics()
Get the DurationMetric enumerations that are available for use by the caller with
RepositoryMonitor.getHistory(DurationMetric, Window). |
Set<ValueMetric> |
getAvailableValueMetrics()
Get the ValueMetric enumerations that are available for use by the caller with
RepositoryMonitor.getHistory(ValueMetric, Window). |
Set<Window> |
getAvailableWindows()
Get the Window enumerations that are available for use by the caller with
RepositoryMonitor.getHistory(DurationMetric, Window) and
RepositoryMonitor.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.
|
protected RepositoryStatistics |
statistics() |
protected JcrRepositoryMonitor(JcrSession session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected final RepositoryStatistics statistics()
public Set<ValueMetric> getAvailableValueMetrics()
RepositoryMonitorRepositoryMonitor.getHistory(ValueMetric, Window).getAvailableValueMetrics in interface RepositoryMonitorRepositoryMonitor.getHistory(ValueMetric, Window)public Set<DurationMetric> getAvailableDurationMetrics()
RepositoryMonitorRepositoryMonitor.getHistory(DurationMetric, Window).getAvailableDurationMetrics in interface RepositoryMonitorRepositoryMonitor.getHistory(DurationMetric, Window),
RepositoryMonitor.getLongestRunning(DurationMetric)public Set<Window> getAvailableWindows()
RepositoryMonitorRepositoryMonitor.getHistory(DurationMetric, Window) and
RepositoryMonitor.getHistory(ValueMetric, Window).getAvailableWindows in interface RepositoryMonitorRepositoryMonitor.getHistory(DurationMetric, Window),
RepositoryMonitor.getHistory(ValueMetric, Window)public History getHistory(ValueMetric metric, Window windowInTime) throws javax.jcr.AccessDeniedException
RepositoryMonitorgetHistory in interface RepositoryMonitormetric - the value metric; may not be nullwindowInTime - the window specifying which statistics are to be returned; may not be nulljavax.jcr.AccessDeniedException - if the session does not have privileges to monitor the repositoryRepositoryMonitor.getAvailableValueMetrics(),
RepositoryMonitor.getAvailableWindows()public History getHistory(DurationMetric metric, Window windowInTime) throws javax.jcr.AccessDeniedException
RepositoryMonitorgetHistory in interface RepositoryMonitormetric - the duration metric; may not be nullwindowInTime - the window specifying which statistics are to be returned; may not be nulljavax.jcr.AccessDeniedException - if the session does not have privileges to monitor the repositoryRepositoryMonitor.getAvailableDurationMetrics(),
RepositoryMonitor.getAvailableWindows()public DurationActivity[] getLongestRunning(DurationMetric metric) throws javax.jcr.AccessDeniedException
RepositoryMonitorgetLongestRunning in interface RepositoryMonitormetric - the duration metric; may not be nulljavax.jcr.AccessDeniedException - if the session does not have privileges to monitor the repositoryRepositoryMonitor.getAvailableDurationMetrics()Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.