Package com.yahoo.container.jdisc.state
Class StateHandler
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.handler.AbstractRequestHandler
com.yahoo.container.jdisc.state.StateHandler
- All Implemented Interfaces:
CapabilityRequiringRequestHandler
,com.yahoo.jdisc.handler.RequestHandler
,com.yahoo.jdisc.SharedResource
public class StateHandler
extends com.yahoo.jdisc.handler.AbstractRequestHandler
implements CapabilityRequiringRequestHandler
A handler which returns state (health) information from this container instance: Status, metrics and vespa version.
- Author:
- Simon Thoresen Hult
-
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.container.jdisc.utils.CapabilityRequiringRequestHandler
DEFAULT_REQUIRED_CAPABILITY
Fields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
-
Constructor Summary
ConstructorDescriptionStateHandler
(StateMonitor monitor, com.yahoo.jdisc.Timer timer, ApplicationMetadataConfig config, com.yahoo.component.provider.ComponentRegistry<SnapshotProvider> snapshotProviders) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.jdisc.handler.ContentChannel
handleRequest
(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler handler) com.yahoo.security.tls.Capability
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.container.jdisc.utils.CapabilityRequiringRequestHandler
requiredCapabilities
Methods inherited from interface com.yahoo.jdisc.handler.RequestHandler
handleTimeout
Methods inherited from interface com.yahoo.jdisc.SharedResource
refer, refer, release
-
Field Details
-
STATE_API_ROOT
- See Also:
-
-
Constructor Details
-
StateHandler
@Inject public StateHandler(StateMonitor monitor, com.yahoo.jdisc.Timer timer, ApplicationMetadataConfig config, com.yahoo.component.provider.ComponentRegistry<SnapshotProvider> snapshotProviders)
-
-
Method Details
-
requiredCapability
- Specified by:
requiredCapability
in interfaceCapabilityRequiringRequestHandler
-
handleRequest
public com.yahoo.jdisc.handler.ContentChannel handleRequest(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler handler) - Specified by:
handleRequest
in interfacecom.yahoo.jdisc.handler.RequestHandler
-