Package org.apache.juneau.rest.stats
Class RestContextStats
java.lang.Object
org.apache.juneau.rest.stats.RestContextStats
A snapshot of execution statistics for REST resource classes.
See Also:
-
Constructor Summary
ConstructorDescriptionRestContextStats
(Instant startTime, List<MethodExecStats> methodStats) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns statistics on all method executions.Returns the time this REST resource class was started.Returns the time in milliseconds that this REST resource class has been running.
-
Constructor Details
-
RestContextStats
Constructor.- Parameters:
startTime
- The start time of theRestContext
object.methodStats
- The execution statistics beans for the context.
-
-
Method Details
-
getStartTime
Returns the time this REST resource class was started.- Returns:
- The time this REST resource class was started.
-
getUpTime
Returns the time in milliseconds that this REST resource class has been running.- Returns:
- The time in milliseconds that this REST resource class has been running.
-
getMethodStats
Returns statistics on all method executions.- Returns:
- Statistics on all method executions.
-