Package org.opends.server.protocols.http
Class CrestMetricsEndpoint
- java.lang.Object
-
- org.opends.server.api.HttpEndpoint<CrestMetricsEndpointCfg>
-
- org.opends.server.protocols.http.CrestMetricsEndpoint
-
public final class CrestMetricsEndpoint extends HttpEndpoint<CrestMetricsEndpointCfg>
Represents a read-only ForgeRock Common REST HTTP Endpoint which exposes server metrics.
-
-
Field Summary
-
Fields inherited from class org.opends.server.api.HttpEndpoint
configuration, serverContext, USE_DEFAULT_BUFFER_FACTORY
-
-
Constructor Summary
Constructors Constructor Description CrestMetricsEndpoint(CrestMetricsEndpointCfg configuration, ServerContext serverContext)Create a newCrestMetricsEndpoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisConfigurationValid(List<LocalizableMessage> unacceptableReasons)Check that the configuration of thisHttpEndpointis valid.org.forgerock.http.HttpApplicationnewHttpApplication()Create a new HttpApplication.
-
-
-
Constructor Detail
-
CrestMetricsEndpoint
public CrestMetricsEndpoint(CrestMetricsEndpointCfg configuration, ServerContext serverContext)
Create a newCrestMetricsEndpoint.- Parameters:
configuration- The configuration to use.serverContext- TheServerContextwhich will be used for retrieving the server's metrics.
-
-
Method Detail
-
newHttpApplication
public org.forgerock.http.HttpApplication newHttpApplication()
Description copied from class:HttpEndpointCreate a new HttpApplication.- Specified by:
newHttpApplicationin classHttpEndpoint<CrestMetricsEndpointCfg>- Returns:
- an
HttpApplicationconfigured and ready to be started.
-
isConfigurationValid
public boolean isConfigurationValid(List<LocalizableMessage> unacceptableReasons)
Description copied from class:HttpEndpointCheck that the configuration of thisHttpEndpointis valid. This default implementation try to instantiate and start the underlyingHttpApplication.- Overrides:
isConfigurationValidin classHttpEndpoint<CrestMetricsEndpointCfg>- Parameters:
unacceptableReasons- A list that can be used to hold messages about why the configuration is not acceptable.- Returns:
- true if the configuration is valid.
-
-