use of com.yahoo.vespa.hosted.provision.node.filter.NodeFilter in project vespa by vespa-engine.
the class NodesApiHandler method toNodeFilter.
public static NodeFilter toNodeFilter(HttpRequest request) {
NodeFilter filter = NodeHostFilter.from(HostFilter.from(request.getProperty("hostname"), request.getProperty("flavor"), request.getProperty("clusterType"), request.getProperty("clusterId")));
filter = ApplicationFilter.from(request.getProperty("application"), filter);
filter = StateFilter.from(request.getProperty("state"), filter);
filter = NodeTypeFilter.from(request.getProperty("type"), filter);
filter = ParentHostFilter.from(request.getProperty("parentHost"), filter);
return filter;
}
Aggregations