Examples of trash()


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

        backfill2Result = rm.getBackfillRequest(backfill2Result.getRequestID(), superuser);
        assertEquals(3, backfill2Result.getVMIds().length);
        assertEquals(RequestState.STATE_Active, backfill2Result.getState().getStateStr());

        rm.cancelSpotInstanceRequests(new String[]{medReq2Id}, caller2);
        rm.trash(medReq2.getGroupID(), Manager.GROUP, caller2);

        // Spot Instances Snapshot
        //
        // Total memory: 1280MB
        // Reserved free memory (for ordinary WS requests): 256MB (minimum reserved capacity)
View Full Code Here

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

        assertEquals(RequestState.STATE_Closed, medReqSR.getState().getStateStr());
        assertEquals(0, medReqSR.getVMIds().length);

        logger.debug("Destroying wsReq3 VMs: 2 VMs, 256MB RAM each");

        rm.trash(wsReq3Result.getGroupID(), Manager.GROUP, wsCaller);

        // Spot Instances Snapshot
        //
        // Total memory: 1280MB
        // Used WS memory: 496MB
View Full Code Here

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

        assertEquals(RequestState.STATE_Active, medReq2SR.getState().getStateStr());
        assertEquals(1, medReq2SR.getVMIds().length);

        logger.debug("Shutting down VM from mediumReq2");

        rm.trash(medReq2SR.getVMIds()[0], Manager.INSTANCE, siCaller);

        // Spot Instances Snapshot
        //
        // Total memory: 1280MB
        // Used WS memory: 496MB
View Full Code Here

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

        assertEquals(1, request.getVMIds().length);

        logger.debug("Trashing higherRequest VMs");

        request = rm.getSpotRequest(result2.getRequestID(), caller);
        rm.trash(request.getGroupID(), Manager.GROUP, caller);

        // Spot Instances Snapshot
        //
        // Total memory: 1280MB
        // Reserved free memory (for ordinary WS requests): 256MB
View Full Code Here

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

        assertEquals(RequestState.STATE_Canceled, backfillReq.getState().getStateStr());

        logger.debug("Trashing higherRequest2 VMs");

        request = rm.getSpotRequest(result3.getRequestID(), caller);
        rm.trash(request.getVMIds()[0], Manager.INSTANCE, caller);

        // Spot Instances Snapshot
        //
        // Total memory: 1280MB
        // Reserved free memory (for ordinary WS requests): 256MB
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(1000L);
        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
    }

    /**
     * Lease a VM with an explicit availability zone, then another, then destroy them
     *
 
View Full Code Here

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

        final NIC[] nics2 = vms2[0].getNics();
        //assertEquals(1, nics2.length);
        //assertEquals("private", nics2[0].getNetworkName());

        Thread.sleep(1000L);
        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
        rm.trash(vms2[0].getID(), Manager.INSTANCE, caller);
    }
}
View Full Code Here

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

        //assertEquals(1, nics2.length);
        //assertEquals("private", nics2[0].getNetworkName());

        Thread.sleep(1000L);
        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
        rm.trash(vms2[0].getID(), Manager.INSTANCE, caller);
    }
}
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(1000L);
        rm.trash(vms[0].getID(), Manager.INSTANCE, caller);
    }
}
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(2000L);

        // Check that it is at least trying to terminate the node:
        int lastFailCount = MockShutdownTrash.getFailCount();
        assertFalse(0 == lastFailCount);
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.