Class ApplicationStatusHandler
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.handler.AbstractRequestHandler
com.yahoo.container.handler.observability.ApplicationStatusHandler
- All Implemented Interfaces:
com.yahoo.jdisc.handler.RequestHandler
,com.yahoo.jdisc.SharedResource
public class ApplicationStatusHandler
extends com.yahoo.jdisc.handler.AbstractRequestHandler
Handler that outputs meta-info about the deployed Vespa application, and status of components and chains.
- Author:
- gjoranv, Einar M R Rosenvinge, bjorncs
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource
com.yahoo.jdisc.SharedResource.Debug
-
Field Summary
Fields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
-
Constructor Summary
ConstructorDescriptionApplicationStatusHandler
(com.yahoo.container.core.ApplicationMetadataConfig metaConfig, ApplicationUserdataConfig userConfig, JdiscBindingsConfig bindingsConfig, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ClientProvider> clientProviderRegistry, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ServerProvider> serverProviderRegistry, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.http.filter.RequestFilterBase> requestFilterRegistry, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.http.filter.ResponseFilterBase> responseFilterRegistry, com.yahoo.component.provider.ComponentRegistry<ApplicationStatusHandler.Extension> extensions) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.jdisc.handler.ContentChannel
handleRequest
(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler handler) com.fasterxml.jackson.databind.ObjectMapper
static com.fasterxml.jackson.databind.JsonNode
renderChains
(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.chain.Chain<?>> chains) static com.fasterxml.jackson.databind.node.ObjectNode
renderComponent
(Object component, com.yahoo.component.ComponentId id) Collection<com.yahoo.jdisc.handler.RequestHandler>
Methods inherited from class com.yahoo.jdisc.handler.AbstractRequestHandler
handleTimeout
Methods inherited from class com.yahoo.jdisc.AbstractResource
currentState, destroy, refer, refer, release, retainCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.jdisc.SharedResource
refer, refer, release
-
Constructor Details
-
ApplicationStatusHandler
@Inject public ApplicationStatusHandler(com.yahoo.container.core.ApplicationMetadataConfig metaConfig, ApplicationUserdataConfig userConfig, JdiscBindingsConfig bindingsConfig, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ClientProvider> clientProviderRegistry, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.service.ServerProvider> serverProviderRegistry, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.http.filter.RequestFilterBase> requestFilterRegistry, com.yahoo.component.provider.ComponentRegistry<com.yahoo.jdisc.http.filter.ResponseFilterBase> responseFilterRegistry, com.yahoo.component.provider.ComponentRegistry<ApplicationStatusHandler.Extension> extensions)
-
-
Method Details
-
handleRequest
public com.yahoo.jdisc.handler.ContentChannel handleRequest(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler handler) -
jsonMapper
public com.fasterxml.jackson.databind.ObjectMapper jsonMapper() -
requestHandlers
-
renderComponent
public static com.fasterxml.jackson.databind.node.ObjectNode renderComponent(Object component, com.yahoo.component.ComponentId id) -
renderChains
public static com.fasterxml.jackson.databind.JsonNode renderChains(com.yahoo.component.provider.ComponentRegistry<? extends com.yahoo.component.chain.Chain<?>> chains)
-