Examples of trash()


Examples of org.nimbustools.api.services.rm.Manager.trash()

        // Fail at killing the instance:
        MockShutdownTrash.setFail(true);
        logger.warn("Set to fail.");

        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
        Thread.sleep(2000L);

        // Check that it is at least trying to terminate the node:
        int lastFailCount = MockShutdownTrash.getFailCount();
        assertFalse(0 == lastFailCount);
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        logger.info("Leased vm '" + vms[0].getID() + '\'');

        assertTrue(rm.exists(vms[0].getID(), Manager.INSTANCE));

        Thread.sleep(4000L);
        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);

        Thread.sleep(1000L);
       
        allvms = rm.getGlobalAll();
        assertEquals(0, allvms.length);
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        assertEquals(5, allvms.length);

        Thread.sleep(2000L);

        for (int i = 0; i < vms.length; i++) {
            rm.trash(vms[i].getID(), Manager.INSTANCE, caller);
        }

        Thread.sleep(2000L);

        allvms = rm.getGlobalAll();
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        // Fail at killing the instance:
        MockShutdownTrash.setFail(true);
        logger.warn("Set to fail.");

        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
        Thread.sleep(4000L);

        // Check that it is at least trying to terminate the node:
        int lastFailCount = MockShutdownTrash.getFailCount();
        assertFalse(0 == lastFailCount);
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        // Fail at killing the instances:
        MockShutdownTrash.setFail(true);
        logger.warn("Set to fail.");

        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
        rm.trash(vms[1].getID(), Manager.INSTANCE, caller);
        Thread.sleep(4000L);

        int lastFailCount = MockShutdownTrash.getFailCount();
        assertFalse(0 == lastFailCount);
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        // Fail at killing the instances:
        MockShutdownTrash.setFail(true);
        logger.warn("Set to fail.");

        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
        rm.trash(vms[1].getID(), Manager.INSTANCE, caller);
        Thread.sleep(4000L);

        int lastFailCount = MockShutdownTrash.getFailCount();
        assertFalse(0 == lastFailCount);
        assertTrue(rm.exists(vms[0].getID(), Manager.INSTANCE));
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        // Fail at killing the instances:
        MockShutdownTrash.setFail(true);
        logger.warn("Set to fail.");

        // Try to kill all but one
        rm.trash(vms[2].getID(), Manager.INSTANCE, caller);
        rm.trash(vms[3].getID(), Manager.INSTANCE, caller);
        Thread.sleep(4000L);

        // Shouldn't work
        allvms = rm.getGlobalAll();
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        MockShutdownTrash.setFail(true);
        logger.warn("Set to fail.");

        // Try to kill all but one
        rm.trash(vms[2].getID(), Manager.INSTANCE, caller);
        rm.trash(vms[3].getID(), Manager.INSTANCE, caller);
        Thread.sleep(4000L);

        // Shouldn't work
        allvms = rm.getGlobalAll();
        assertEquals(3, allvms.length);
View Full Code Here

Examples of org.nimbustools.api.services.rm.Manager.trash()

        assertFalse(rm.exists(vms[3].getID(), Manager.INSTANCE));
        allvms = rm.getGlobalAll();
        assertEquals(1, allvms.length);

        // And this one should now die right away:
        rm.trash(vms[4].getID(), Manager.INSTANCE, caller);
        assertFalse(rm.exists(vms[4].getID(), Manager.INSTANCE));
        allvms = rm.getGlobalAll();
        assertEquals(0, allvms.length);
    }
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.