Search in sources :

Example 1 with NodeFilter

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;
}
Also used : NodeFilter(com.yahoo.vespa.hosted.provision.node.filter.NodeFilter)

Aggregations

NodeFilter (com.yahoo.vespa.hosted.provision.node.filter.NodeFilter)1