Examples of HostEnvironment


Examples of com.cloud.host.HostEnvironment

            resource.configure(host.getName(), params);
            hostResourcesMap.put(hostId, resource);
        } catch (ConfigurationException e) {
            logger.debug("Failed to load resource:" + e.toString());
        }
        HostEnvironment env = new HostEnvironment();
        SetupCommand cmd = new SetupCommand(env);
        cmd.setNeedSetup(true);
       
        resource.executeRequest(cmd);
    }
View Full Code Here

Examples of com.cloud.host.HostEnvironment

       
       
        if (s_logger.isDebugEnabled()) {
            s_logger.debug("Setting up host " + agentId);
        }
        HostEnvironment env = new HostEnvironment();
       
        SetupCommand setup = new SetupCommand(env);
        if (_setupMultipath) {
            setup.setMultipathOn();
        }
View Full Code Here

Examples of net.sf.jdistunit.platform.HostEnvironment

            OS.setSecurityManager("res/config/policy_all.ini");
            OS.checkSecurityManagerPresent();
        }

        // Create simulated network of test servers.
        env = new HostEnvironment(true);
        HostId routerId = env.host1.getHomeId();

        // A new test box must be created here.
        // And connected to the test server network.
        testBox = new TestBox(15907);
View Full Code Here

Examples of net.sf.jdistunit.platform.HostEnvironment

     *
     * @throws Exception If something failed.
     */
    public void testTestBox() throws Exception {
        // Create simulated network of test servers.
        HostEnvironment env = new HostEnvironment(true);

        // Create new test box.
        ITestBox box = new TestBox(15907);

        // Connect box with other hosts.
        final HostId routerId = env.host1.getHomeId();
        box.connectToNetwork(routerId);

        // Test server count.
        final int testServerCount = box.getTestServerCount();
        assertEquals(2, testServerCount);

        // Shut down box and environment.
        env.shutDown();
        box.shutdown();

        // Wait for ports to be freed.
        OS.sleep(500);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.