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 RepositoryException
RepositoryException
protected final RepositoryStatistics statistics()
public Set<ValueMetric> getAvailableValueMetrics()
RepositoryMonitor
RepositoryMonitor.getHistory(ValueMetric, Window)
.getAvailableValueMetrics
in interface RepositoryMonitor
RepositoryMonitor.getHistory(ValueMetric, Window)
public Set<DurationMetric> getAvailableDurationMetrics()
RepositoryMonitor
RepositoryMonitor.getHistory(DurationMetric, Window)
.getAvailableDurationMetrics
in interface RepositoryMonitor
RepositoryMonitor.getHistory(DurationMetric, Window)
,
RepositoryMonitor.getLongestRunning(DurationMetric)
public Set<Window> getAvailableWindows()
RepositoryMonitor
RepositoryMonitor.getHistory(DurationMetric, Window)
and
RepositoryMonitor.getHistory(ValueMetric, Window)
.getAvailableWindows
in interface RepositoryMonitor
RepositoryMonitor.getHistory(DurationMetric, Window)
,
RepositoryMonitor.getHistory(ValueMetric, Window)
public History getHistory(ValueMetric metric, Window windowInTime) throws AccessDeniedException
RepositoryMonitor
getHistory
in interface RepositoryMonitor
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 repositoryRepositoryMonitor.getAvailableValueMetrics()
,
RepositoryMonitor.getAvailableWindows()
public History getHistory(DurationMetric metric, Window windowInTime) throws AccessDeniedException
RepositoryMonitor
getHistory
in interface RepositoryMonitor
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 repositoryRepositoryMonitor.getAvailableDurationMetrics()
,
RepositoryMonitor.getAvailableWindows()
public DurationActivity[] getLongestRunning(DurationMetric metric) throws AccessDeniedException
RepositoryMonitor
getLongestRunning
in interface RepositoryMonitor
metric
- the duration metric; may not be nullAccessDeniedException
- if the session does not have privileges to monitor the repositoryRepositoryMonitor.getAvailableDurationMetrics()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.