|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jcr.JcrRepositoryMonitor
public class JcrRepositoryMonitor
The session-specific monitoring interface.
| Constructor Summary | |
|---|---|
protected |
JcrRepositoryMonitor(JcrSession session)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JcrRepositoryMonitor(JcrSession session)
throws RepositoryException
RepositoryException| Method Detail |
|---|
protected 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 AccessDeniedException
RepositoryMonitor
getHistory in interface RepositoryMonitormetric - the value metric; may not be nullwindowInTime - the window specifying which statistics are to be returned; may not be null
AccessDeniedException - 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 RepositoryMonitormetric - the duration metric; may not be nullwindowInTime - the window specifying which statistics are to be returned; may not be null
AccessDeniedException - 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 RepositoryMonitormetric - the duration metric; may not be null
AccessDeniedException - if the session does not have privileges to monitor the repositoryRepositoryMonitor.getAvailableDurationMetrics()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||