public final class CrestMetricsEndpoint extends HttpEndpoint<CrestMetricsEndpointCfg>
configuration, serverContext, USE_DEFAULT_BUFFER_FACTORY
Constructor and Description |
---|
CrestMetricsEndpoint(CrestMetricsEndpointCfg configuration,
ServerContext serverContext)
Create a new
CrestMetricsEndpoint . |
Modifier and Type | Method and Description |
---|---|
boolean |
isConfigurationValid(List<LocalizableMessage> unacceptableReasons)
Check that the configuration of this
HttpEndpoint is valid. |
org.forgerock.http.HttpApplication |
newHttpApplication()
Create a new HttpApplication.
|
public CrestMetricsEndpoint(CrestMetricsEndpointCfg configuration, ServerContext serverContext)
CrestMetricsEndpoint
.configuration
- The configuration to use.serverContext
- The ServerContext
which will be used for retrieving the server's metrics.public org.forgerock.http.HttpApplication newHttpApplication()
HttpEndpoint
newHttpApplication
in class HttpEndpoint<CrestMetricsEndpointCfg>
HttpApplication
configured and ready to be started.public boolean isConfigurationValid(List<LocalizableMessage> unacceptableReasons)
HttpEndpoint
HttpEndpoint
is valid. This default implementation try to
instantiate and start the underlying HttpApplication
.isConfigurationValid
in class HttpEndpoint<CrestMetricsEndpointCfg>
unacceptableReasons
- A list that can be used to hold messages about why the configuration is not acceptable.Copyright 2010-2022 ForgeRock AS.