Package org.globus.workspace.remoting.admin

Examples of org.globus.workspace.remoting.admin.VmmNode


        String nodePool = "default";
        String net = "*";
        boolean vacant = true;
        Gson gson = new Gson();
        List<VmmNode> nodes = new ArrayList<VmmNode>(4);
        nodes.add(new VmmNode("fakehost1", active, nodePool, 512, net, vacant));
        nodes.add(new VmmNode("fakehost2", active, nodePool, 512, net, vacant));
        nodes.add(new VmmNode("fakehost3", active, nodePool, 256, net, vacant));
        final String nodesJson = gson.toJson(nodes);
        RemoteNodeManagement rnm = this.locator.getNodeManagement();
        rnm.addNodes(nodesJson);
    }
View Full Code Here


        String nodePool = "default";
        String net = "*";
        boolean vacant = true;
        Gson gson = new Gson();
        List<VmmNode> nodes = new ArrayList<VmmNode>(4);
        nodes.add(new VmmNode("fakehost1", active, nodePool, 512, net, vacant));
        nodes.add(new VmmNode("fakehost2", active, nodePool, 512, net, vacant));
        nodes.add(new VmmNode("fakehost3", active, nodePool, 256, net, vacant));
        final String nodesJson = gson.toJson(nodes);
        RemoteNodeManagement rnm = this.locator.getNodeManagement();
        rnm.addNodes(nodesJson);
    }
View Full Code Here

    protected void setUpVmms() throws RemoteException {
        logger.info("Before test method: overriden setUpVmms(), one unique instance");
        Gson gson = new Gson();
        List<VmmNode> nodes = new ArrayList<VmmNode>(1);
        nodes.add(new VmmNode("fakehost1", true, "default", 512, "*", true));
        final String nodesJson = gson.toJson(nodes);
        RemoteNodeManagement rnm = this.locator.getNodeManagement();
        rnm.addNodes(nodesJson);
    }
View Full Code Here

    protected void setUpVmms() throws RemoteException {
        logger.info("Before test method: overriden setUpVmms()");
        Gson gson = new Gson();
        List<VmmNode> nodes = new ArrayList<VmmNode>(4);
        nodes.add(new VmmNode("fakehost1", true, "default", 3072, "*", true));
        nodes.add(new VmmNode("fakehost2", true, "default", 3072, "*", true));
        nodes.add(new VmmNode("fakehost3", true, "default", 3072, "*", true));
        nodes.add(new VmmNode("fakehost4", true, "default", 3072, "*", true));
        final String nodesJson = gson.toJson(nodes);
        RemoteNodeManagement rnm = this.locator.getNodeManagement();
        rnm.addNodes(nodesJson);
    }
View Full Code Here

    protected void setUpVmms() throws RemoteException {
        logger.info("Before test method: overriden setUpVmms()");
        Gson gson = new Gson();
        List<VmmNode> nodes = new ArrayList<VmmNode>(1);
        nodes.add(new VmmNode("fakehost1", true, "default", 512, "*", true));
        final String nodesJson = gson.toJson(nodes);
        RemoteNodeManagement rnm = this.locator.getNodeManagement();
        rnm.addNodes(nodesJson);
    }
View Full Code Here

        boolean active = true;
        String nodePool = "default";
        boolean vacant = true;
        Gson gson = new Gson();
        List<VmmNode> nodes = new ArrayList<VmmNode>();
        nodes.add(new VmmNode("fakehost1", active, nodePool, 64, "*", vacant));
        final String nodesJson = gson.toJson(nodes);
        RemoteNodeManagement rnm = this.locator.getNodeManagement();
        rnm.addNodes(nodesJson);
        this.remoteNodeManagement = rnm;
    }
View Full Code Here

        final CreateRequest request =
                this.populator().getCreateRequest("memoryFreed", 240, 63, 1);
        final CreateResult result = rm.create(request, caller);
        final VM[] vms = result.getVMs();

        VmmNode node = getNodes()[0];
        assertFalse(node.isVacant());

        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
        node = getNodes()[0];

        assertTrue(node.isVacant());
    }
View Full Code Here

            gotError = true;
            logger.error("Got error", e);
        }
        assertTrue(gotError);

        VmmNode node = getNodes()[0];
        assertTrue(node.isVacant());

    }
View Full Code Here

        boolean active = true;
        String nodePool = "default";
        boolean vacant = true;
        Gson gson = new Gson();
        List<VmmNode> nodes = new ArrayList<VmmNode>(4);
        nodes.add(new VmmNode("fakehost1", active, nodePool, 64, "public", vacant));
        nodes.add(new VmmNode("fakehost2", active, nodePool, 64, "private", vacant));
        final String nodesJson = gson.toJson(nodes);
        RemoteNodeManagement rnm = this.locator.getNodeManagement();
        rnm.addNodes(nodesJson);
    }
View Full Code Here

                                node.getPoolName(),
                                node.getNetworkAssociations(),
                                node.getMemory(),
                                node.isActive());

                final VmmNode resultNode = translateResourcepoolEntry(entry);
                reports.add(new NodeReport(hostname,
                        NodeReport.STATE_ADDED, resultNode));

            } catch (NodeExistsException e) {
                logger.info("VMM node " + hostname + " already existed");
View Full Code Here

TOP

Related Classes of org.globus.workspace.remoting.admin.VmmNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.