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,RequestHandler,SharedResource
public class StateHandler
extends 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
SharedResource.Debug -
Field Summary
FieldsFields inherited from interface com.yahoo.container.jdisc.utils.CapabilityRequiringRequestHandler
DEFAULT_REQUIRED_CAPABILITYFields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionStateHandler(StateMonitor monitor, Timer timer, ApplicationMetadataConfig config, com.yahoo.component.provider.ComponentRegistry<SnapshotProvider> snapshotProviders) -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest(Request request, ResponseHandler handler) com.yahoo.security.tls.CapabilityMethods inherited from class com.yahoo.jdisc.handler.AbstractRequestHandler
handleTimeoutMethods inherited from class com.yahoo.jdisc.AbstractResource
currentState, destroy, refer, refer, release, retainCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.container.jdisc.utils.CapabilityRequiringRequestHandler
requiredCapabilitiesMethods inherited from interface com.yahoo.jdisc.handler.RequestHandler
handleTimeoutMethods 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, Timer timer, ApplicationMetadataConfig config, com.yahoo.component.provider.ComponentRegistry<SnapshotProvider> snapshotProviders)
-
-
Method Details
-
requiredCapability
- Specified by:
requiredCapabilityin interfaceCapabilityRequiringRequestHandler
-
handleRequest
- Specified by:
handleRequestin interfaceRequestHandler
-