public interface Report
| Modifier and Type | Field and Description |
|---|---|
static long |
NOT_STARTED
Indicates that associated process has not yet been started (initiated).
|
static long |
NOT_STOPPED
Indicates that associated process has not yet been stopped (completed).
|
static long |
UNKNOWN_EXPIRATION |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsAnyExceptions()
A convenience method that checks for existence of all kinds of Exceptions.
|
java.lang.String |
getAccessToken()
Return the access token that was obtained by the
Authenticator. |
long |
getAccessTokenExpirationTime()
Return the expiration time of the access token.
|
java.lang.String |
getAssociatedProcessUniqueId()
Get the unique identifier that may be used to correlate this
report instance with any implementation instance objects associated
with the process that created this report.
|
java.util.Collection<java.lang.Exception> |
getAuthenticatorExceptions()
Get the exception(s) throw by the
Authenticator instance. |
long |
getCreationTime()
Get the time stamp when the associated process was created.
|
long |
getDuration()
Get the associated process duration
|
long |
getDurationSinceCreation()
Get the duration since the associated process was created.
|
long |
getDurationSinceStarted()
Get the duration since the associated process started.
|
long |
getDurationSinceStopped()
Get the duration since the associated process stopped.
|
IdentityProvider |
getIdentityProvider()
Get the
IdentityProvider used to perform the associated process. |
java.lang.String |
getRefreshToken()
Return the refresh token that was obtained by the
Authenticator. |
long |
getStartTime()
Get the time stamp when associated process was started.
|
long |
getStopTime()
Get the time stamp when associated process was completed.
|
boolean |
isAuthenticated()
A convenience method that is equivalent to calling
getAccessToken() and
getRefreshToken() and then comparing the return values to null. |
boolean |
isStarted()
A convenience method equivalent to calling
getStartTime() and then
comparing the returned value to NOT_STARTED |
boolean |
isStopped()
A convenience method equivalent to calling
getStopTime() and then
comparing the returned value to NOT_STOPPED |
static final long UNKNOWN_EXPIRATION
static final long NOT_STARTED
static final long NOT_STOPPED
java.lang.String getAssociatedProcessUniqueId()
IdentityProvider getIdentityProvider()
IdentityProvider used to perform the associated process.IdentityProvider used to perform the associated process.boolean isAuthenticated()
getAccessToken() and
getRefreshToken() and then comparing the return values to null.true iff an access or refresh token exists (i.e. the Identity Provider
is authenticated)java.lang.String getAccessToken()
Authenticator.null if the access token does not exist.long getAccessTokenExpirationTime()
UNKNOWN_EXPIRATION is
returned.java.lang.String getRefreshToken()
Authenticator.null if the refresh token does not exist.java.util.Collection<java.lang.Exception> getAuthenticatorExceptions()
Authenticator instance.Collection of Exception instances were thrown by the
Authenticator instance. May be null if no exception exists.boolean existsAnyExceptions()
#get*Exceptions()
method to determine if any of the "buckets" has an exception.true iff at least one exception exists in the report.long getCreationTime()
long getStartTime()
NOT_STARTED will be returned.long getStopTime()
NOT_STOPPED will be returned.boolean isStarted()
getStartTime() and then
comparing the returned value to NOT_STARTEDtrue iff associated process was startedboolean isStopped()
getStopTime() and then
comparing the returned value to NOT_STOPPEDtrue iff associated process was stopped.long getDuration()
NOT_STOPPED will be
returned.long getDurationSinceStopped()
Report object and any associated implementation instance objects.NOT_STOPPED will be returned.long getDurationSinceStarted()
Report object and its associated implementation instance objects. Useful
for detecting implementation instance objects that may be "abandoned."NOT_STARTED
will be returned.long getDurationSinceCreation()