Package com.nimbusds.common.config
Class MonitorConfiguration
java.lang.Object
com.nimbusds.common.config.MonitorConfiguration
- All Implemented Interfaces:
LoggableConfiguration
DropWizard metrics configuration. System property override is enabled.
The configuration is stored as public fields which become immutable (final) after their initialisation.
Property keys: monitor.*
Example properties:
monitor.entryCountCacheTimeout=1800 monitor.enableJMX=true monitor.graphite.enable=true monitor.graphite.host=carbon.server.com monitor.graphite.port=2003 monitor.graphite.reportInterval=60 monitor.graphite.batchSize=100 monitor.graphite.prefix= monitor.graphite.ratesTimeUnit=SECONDS monitor.graphite.durationsTimeUnit=MILLISECONDS monitor.graphite.filter.1=authzStore.ldapConnector.* monitor.graphite.filter.2=tokenEndpoint.code.* monitor.graphite.filter.3=tokenEndpoint.refreshToken.*
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Graphite reporting configuration. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
The default entry count cache timeout (30 minutes).final boolean
Enables / disables JMX reporting.final long
Timeout for caching entry count results, in seconds.The Graphite reporting configuration.static final String
The prefix for the property names.Fields inherited from interface com.nimbusds.common.config.LoggableConfiguration
LOG_CATEGORY
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorConfiguration
(Properties props) Creates a new monitoring configuration from the specified properties. -
Method Summary
-
Field Details
-
PREFIX
The prefix for the property names.- See Also:
-
DEFAULT_ENTRY_COUNT_CACHE_TIMEOUT
The default entry count cache timeout (30 minutes).- See Also:
-
entryCountCacheTimeout
Timeout for caching entry count results, in seconds. Zero means no caching, negative disabled readings. -
enableJMX
Enables / disables JMX reporting. -
graphite
The Graphite reporting configuration.
-
-
Constructor Details
-
MonitorConfiguration
Creates a new monitoring configuration from the specified properties.- Parameters:
props
- The properties. Must not benull
.- Throws:
ConfigurationException
- On a missing or invalid property.
-
-
Method Details
-
log
Logs the configuration details at INFO level.- Specified by:
log
in interfaceLoggableConfiguration
-