Search in sources :

Example 6 with StatusPageResponse

use of com.yahoo.vespa.clustercontroller.core.status.statuspage.StatusPageResponse in project vespa by vespa-engine.

the class ClusterStateRequestHandler method handle.

@Override
public StatusPageResponse handle(StatusPageServer.HttpRequest request) {
    ClusterState cs = stateVersionTracker.getVersionedClusterState();
    StatusPageResponse response = new StatusPageResponse();
    response.setContentType("text/plain");
    response.writeContent(cs.toString());
    return response;
}
Also used : ClusterState(com.yahoo.vdslib.state.ClusterState) StatusPageResponse(com.yahoo.vespa.clustercontroller.core.status.statuspage.StatusPageResponse)

Aggregations

StatusPageResponse (com.yahoo.vespa.clustercontroller.core.status.statuspage.StatusPageResponse)6 StatusPageServer (com.yahoo.vespa.clustercontroller.core.status.statuspage.StatusPageServer)2 ListenFailedException (com.yahoo.jrt.ListenFailedException)1 ClusterState (com.yahoo.vdslib.state.ClusterState)1 Node (com.yahoo.vdslib.state.Node)1 NodeType (com.yahoo.vdslib.state.NodeType)1 VdsClusterHtmlRendrer (com.yahoo.vespa.clustercontroller.core.status.statuspage.VdsClusterHtmlRendrer)1 HttpRequest (com.yahoo.vespa.clustercontroller.utils.communication.http.HttpRequest)1 HttpResult (com.yahoo.vespa.clustercontroller.utils.communication.http.HttpResult)1 FileNotFoundException (java.io.FileNotFoundException)1 TimeZone (java.util.TimeZone)1 Matcher (java.util.regex.Matcher)1