Search in sources :

Example 1 with NodeMembership

use of com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeMembership in project vespa by vespa-engine.

the class NodeRepositoryClientMock method createNodeB.

private static NodeRepositoryNode createNodeB() {
    NodeRepositoryNode node = new NodeRepositoryNode();
    node.setHostname("hostB");
    node.setCost(20);
    node.setFlavor("C-2C/24/500");
    NodeMembership membership = new NodeMembership();
    membership.clusterid = "clusterB";
    membership.clustertype = "content";
    node.setMembership(membership);
    return node;
}
Also used : NodeMembership(com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeMembership) NodeRepositoryNode(com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeRepositoryNode)

Example 2 with NodeMembership

use of com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeMembership in project vespa by vespa-engine.

the class NodeRepositoryClientMock method createNodeA.

private static NodeRepositoryNode createNodeA() {
    NodeRepositoryNode node = new NodeRepositoryNode();
    node.setHostname("hostA");
    node.setCost(10);
    node.setFlavor("C-2B/24/500");
    NodeMembership membership = new NodeMembership();
    membership.clusterid = "clusterA";
    membership.clustertype = "container";
    node.setMembership(membership);
    return node;
}
Also used : NodeMembership(com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeMembership) NodeRepositoryNode(com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeRepositoryNode)

Aggregations

NodeMembership (com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeMembership)2 NodeRepositoryNode (com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeRepositoryNode)2