Examples of trash()


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

        assertEquals(RequestState.STATE_Active, highReqSR.getState().getStateStr());
        assertEquals(4, highReqSR.getVMIds().length);

        logger.debug("Trashing machines from request: highReq1");

        rm.trash(highReqSR.getGroupID(), Manager.GROUP, 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(RequestState.STATE_Closed, highReqSR.getState().getStateStr());
        assertEquals(0, highReqSR.getVMIds().length);

        logger.debug("Destroying remaining WS VMs.");

        rm.trash(wsReq1Result.getGroupID(), Manager.GROUP, wsCaller);
        rm.trash(wsReq4Result.getVMs()[0].getID(), Manager.INSTANCE, wsCaller);
    }

    public int getAvailableResources(){
        AsyncRequestManagerImpl siManager = (AsyncRequestManagerImpl) applicationContext.getBean(SPOTINSTANCES_MANAGER_BEAN_NAME);
View Full Code Here

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

        assertEquals(0, highReqSR.getVMIds().length);

        logger.debug("Destroying remaining WS VMs.");

        rm.trash(wsReq1Result.getGroupID(), Manager.GROUP, wsCaller);
        rm.trash(wsReq4Result.getVMs()[0].getID(), Manager.INSTANCE, wsCaller);
    }

    public int getAvailableResources(){
        AsyncRequestManagerImpl siManager = (AsyncRequestManagerImpl) applicationContext.getBean(SPOTINSTANCES_MANAGER_BEAN_NAME);
        return siManager.getMaxVMs();
View Full Code Here

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

        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

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);
    }

    /**
     * It should not be possible to lease two VMs that want private networks, there is only
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);
    }

    /**
     * It should not be possible to lease two VMs that want private networks, there is only
     * one VMM with private ability (and RAM is being filled).
View Full Code Here

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

            rrdException = true;
        }
        assertTrue(rrdException);

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

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

        assertEquals(0, backfill2Result.getVMIds().length);
        assertEquals(RequestState.STATE_Open, backfill2Result.getState().getStateStr());

        //Trash 5 VMs from highReq
        for (int i = 0; i < 5; i++) {
            rm.trash(highReq1.getVMIds()[i], Manager.INSTANCE, caller3);
        }

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

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

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

        rm.trash(highReq1.getGroupID(), Manager.GROUP, caller3);

        // 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()

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

        rm.cancelBackfillRequests(new String[]{backfill1Result.getRequestID()}, superuser);
        rm.trash(backfill1Result.getGroupID(), Manager.GROUP, superuser);

        // Spot Instances Snapshot
        //
        // Total memory: 1280MB
        // Reserved free memory (for ordinary WS requests): 256MB (minimum reserved capacity)
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.