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;
}
Aggregations