Class AbstractDynamicMetadataResolver.PersistentCacheInitializationMetrics
java.lang.Object
org.opensaml.saml.metadata.resolver.impl.AbstractDynamicMetadataResolver.PersistentCacheInitializationMetrics
- Enclosing class:
- AbstractDynamicMetadataResolver
public static class AbstractDynamicMetadataResolver.PersistentCacheInitializationMetrics
extends Object
Class used to track metrics related to the initialization from the persistent cache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Whether or not persistent caching was enabled.private int
Entries which were successfully loaded and made live.private int
Entries which were skipped because they were already live by the time they were processed, generally only seen when initializing from the persistent cache in a background thread.private int
Entries which were skipped because they failed the persistent cache predicate evaluation.private int
Entries which were skipped because they were determined to be invalid.private int
Entries which were skipped due to a processing exception.private int
Total entries seen in the persistent cache.private long
Total processing time for the persistent cache, in nanoseconds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get entries which were successfully loaded and made live.int
Get entries which were skipped because they were already live by the time they were processed, generally only seen when initializing from the persistent cache in a background thread.int
Get entries which were skipped because they failed the persistent cache predicate evaluation.int
Get entries which were skipped because they were determined to be invalid.int
Get entries which were skipped due to a processing exception.int
Get total entries seen in the persistent cache.long
Get total processing time for the persistent cache, in nanoseconds.boolean
Get whether or not persistent caching was enabled.toString()
-
Field Details
-
enabled
private boolean enabledWhether or not persistent caching was enabled. -
processingTime
private long processingTimeTotal processing time for the persistent cache, in nanoseconds. -
entriesTotal
private int entriesTotalTotal entries seen in the persistent cache. -
entriesLoaded
private int entriesLoadedEntries which were successfully loaded and made live. -
entriesSkippedAlreadyLive
private int entriesSkippedAlreadyLiveEntries which were skipped because they were already live by the time they were processed, generally only seen when initializing from the persistent cache in a background thread. -
entriesSkippedInvalid
private int entriesSkippedInvalidEntries which were skipped because they were determined to be invalid. -
entriesSkippedFailedPredicate
private int entriesSkippedFailedPredicateEntries which were skipped because they failed the persistent cache predicate evaluation. -
entriesSkippedProcessingException
private int entriesSkippedProcessingExceptionEntries which were skipped due to a processing exception.
-
-
Constructor Details
-
PersistentCacheInitializationMetrics
public PersistentCacheInitializationMetrics()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Get whether or not persistent caching was enabled.- Returns:
- Returns the enabled.
-
getProcessingTime
public long getProcessingTime()Get total processing time for the persistent cache, in nanoseconds.- Returns:
- Returns the processingTime.
-
getEntriesTotal
public int getEntriesTotal()Get total entries seen in the persistent cache.- Returns:
- Returns the entriesTotal.
-
getEntriesLoaded
public int getEntriesLoaded()Get entries which were successfully loaded and made live.- Returns:
- Returns the entriesLoaded.
-
getEntriesSkippedAlreadyLive
public int getEntriesSkippedAlreadyLive()Get entries which were skipped because they were already live by the time they were processed, generally only seen when initializing from the persistent cache in a background thread.- Returns:
- Returns the entriesSkippedAlreadyLive.
-
getEntriesSkippedInvalid
public int getEntriesSkippedInvalid()Get entries which were skipped because they were determined to be invalid.- Returns:
- Returns the entriesSkippedInvalid.
-
getEntriesSkippedFailedPredicate
public int getEntriesSkippedFailedPredicate()Get entries which were skipped because they failed the persistent cache predicate evaluation.- Returns:
- Returns the entriesSkippedFailedPredicate.
-
getEntriesSkippedProcessingException
public int getEntriesSkippedProcessingException()Get entries which were skipped due to a processing exception.- Returns:
- Returns the entriesSkippedProcessingException.
-
toString
-