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:
com.yahoo.jdisc.handler.RequestHandler
,com.yahoo.jdisc.SharedResource
public class StateHandler extends com.yahoo.jdisc.handler.AbstractRequestHandler
A handler which returns state (health) information from this container instance: Status, metrics and vespa version.- Author:
- Simon Thoresen Hult
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STATE_API_ROOT
-
Constructor Summary
Constructors Constructor Description StateHandler(StateMonitor monitor, com.yahoo.jdisc.Timer timer, ApplicationMetadataConfig config, com.yahoo.component.provider.ComponentRegistry<SnapshotProvider> snapshotProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yahoo.jdisc.handler.ContentChannel
handleRequest(com.yahoo.jdisc.Request request, com.yahoo.jdisc.handler.ResponseHandler handler)
-
Methods inherited from class com.yahoo.jdisc.AbstractResource
currentState, destroy, refer, refer, release, retainCount
-
-
-
-
Field Detail
-
STATE_API_ROOT
public static final java.lang.String STATE_API_ROOT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StateHandler
@Inject public StateHandler(StateMonitor monitor, com.yahoo.jdisc.Timer timer, ApplicationMetadataConfig config, com.yahoo.component.provider.ComponentRegistry<SnapshotProvider> snapshotProviders)
-
-