Search in sources :

Example 1 with StateHandler

use of com.yahoo.container.jdisc.state.StateHandler in project vespa by vespa-engine.

the class ContainerCluster method addMetricStateHandler.

public void addMetricStateHandler() {
    Handler<AbstractConfigProducer<?>> stateHandler = new Handler<>(new ComponentModel(STATE_HANDLER_CLASS, null, null, null));
    stateHandler.addServerBindings("http://*" + StateHandler.STATE_API_ROOT, "https://*" + StateHandler.STATE_API_ROOT, "http://*" + StateHandler.STATE_API_ROOT + "/*", "https://*" + StateHandler.STATE_API_ROOT + "/*");
    addComponent(stateHandler);
}
Also used : AbstractConfigProducer(com.yahoo.config.model.producer.AbstractConfigProducer) ComponentModel(com.yahoo.osgi.provider.model.ComponentModel) BindingsOverviewHandler(com.yahoo.container.usability.BindingsOverviewHandler) ProcessingHandler(com.yahoo.vespa.model.container.component.chain.ProcessingHandler) Handler(com.yahoo.vespa.model.container.component.Handler) JerseyHandler(com.yahoo.vespa.model.container.jersey.JerseyHandler) StateHandler(com.yahoo.container.jdisc.state.StateHandler)

Aggregations

AbstractConfigProducer (com.yahoo.config.model.producer.AbstractConfigProducer)1 StateHandler (com.yahoo.container.jdisc.state.StateHandler)1 BindingsOverviewHandler (com.yahoo.container.usability.BindingsOverviewHandler)1 ComponentModel (com.yahoo.osgi.provider.model.ComponentModel)1 Handler (com.yahoo.vespa.model.container.component.Handler)1 ProcessingHandler (com.yahoo.vespa.model.container.component.chain.ProcessingHandler)1 JerseyHandler (com.yahoo.vespa.model.container.jersey.JerseyHandler)1