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 booleanWhether or not persistent caching was enabled.private intEntries which were successfully loaded and made live.private intEntries 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 intEntries which were skipped because they failed the persistent cache predicate evaluation.private intEntries which were skipped because they were determined to be invalid.private intEntries which were skipped due to a processing exception.private intTotal entries seen in the persistent cache.private longTotal processing time for the persistent cache, in nanoseconds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet entries which were successfully loaded and made live.intGet 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.intGet entries which were skipped because they failed the persistent cache predicate evaluation.intGet entries which were skipped because they were determined to be invalid.intGet entries which were skipped due to a processing exception.intGet total entries seen in the persistent cache.longGet total processing time for the persistent cache, in nanoseconds.booleanGet 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
-