Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.jcr.api.monitor
Interface History

All Known Implementing Classes:
  RepositoryStatistics.History

    public interface History

An immutable history of a metric for a given window in time.

Since:
  3.0

Method Summary
`DateTime` | `getEndTime()` Get the timestamp (including time zone information) at which this history window ends.
`DateTime` | `getStartTime()` Get the timestamp (including time zone information) at which this history window starts.
`Statistics[]` | `getStats()` Get the statistics for that make up the history.
`long` | `getTotalDuration(TimeUnit unit)` Get the total duration of this history window.
`Window` | `getWindow()` Get the kind of window.

Method Detail

### getWindow

    Window getWindow()

  Get the kind of window.

  Returns:
    the window type; never null

### getTotalDuration

    long getTotalDuration(TimeUnit unit)

  Get the total duration of this history window.

  Parameters:
    `unit` - the desired time unit; if null, then `TimeUnit.SECONDS` is used
  Returns:
    the duration

### getStartTime

    DateTime getStartTime()

  Get the timestamp (including time zone information) at which this history window starts.

  Returns:
    the time at which this window starts

### getEndTime

    DateTime getEndTime()

  Get the timestamp (including time zone information) at which this history window ends.

  Returns:
    the time at which this window ends

### getStats

    Statistics[] getStats()

  Get the statistics for that make up the history.

  Returns:
    the statistics; never null, but the array may contain null if the window is longer than the lifetime of the repository

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.