Package org.apache.juneau.rest.stats
Class ThrownStats
java.lang.Object
org.apache.juneau.rest.stats.ThrownStats
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
static ThrownStats.Builder
Static creator.Returns the stats on the caused-by exception.int
getCount()
Returns the number of times this exception occurred at a specific location in code.Returns the message of the first exception at a specific location in code.long
Returns the UTC time of the first occurrence of this exception at a specific location in code.long
getGuid()
Returns a globally unique ID for this object.long
getHash()
Returns a hash of this exception that can typically be used to uniquely identify it.long
Returns the UTC time of the last occurrence of this exception at a specific location in code.Returns the stack trace of the first exception at a specific location in code.Class<?>
Returns the exception class.Increments the occurrence count of this exception.toString()
-
Constructor Details
-
ThrownStats
Constructor.- Parameters:
builder
- The builder for this object.
-
-
Method Details
-
create
Static creator.- Parameters:
beanStore
- The bean store to use for creating beans.- Returns:
- A new builder for this object.
-
getGuid
Returns a globally unique ID for this object.A random long generated during the creation of this object. Allows this object to be differentiated from other similar objects in multi-node environments so that statistics can be reliably stored in a centralized location.
- Returns:
- The globally unique ID for this object.
-
getHash
Returns a hash of this exception that can typically be used to uniquely identify it.- Returns:
- A hash of this exception.
-
getThrownClass
Returns the exception class.- Returns:
- The exception class.
-
getCount
Returns the number of times this exception occurred at a specific location in code.- Returns:
- The number of times this exception occurred at a specific location in code.
-
getFirstOccurrence
Returns the UTC time of the first occurrence of this exception at a specific location in code.- Returns:
- The UTC time of the first occurrence of this exception at a specific location in code.
-
getLastOccurrence
Returns the UTC time of the last occurrence of this exception at a specific location in code.- Returns:
- The UTC time of the last occurrence of this exception at a specific location in code.
-
getFirstMessage
Returns the message of the first exception at a specific location in code.- Returns:
- The message of the first exception at a specific location in code.
-
getStackTrace
Returns the stack trace of the first exception at a specific location in code.- Returns:
- The stack trace of the first exception at a specific location in code.
-
getCausedBy
Returns the stats on the caused-by exception.- Returns:
- The stats on the caused-by exception, never
null .
-
increment
Increments the occurrence count of this exception.- Returns:
- This object.
-
toString
-
clone
-