Package org.nimbustools.api.services.rm

Examples of org.nimbustools.api.services.rm.ResourceRequestDeniedException


    protected void checkRA(ResourceAllocation ra)
            throws ResourceRequestDeniedException {

        if (ra == null) {
            throw new ResourceRequestDeniedException("resource allocation is missing");
        }

        if (ra.getNodeNumber() < 1) {
            throw new ResourceRequestDeniedException(
                    "node number may not be less than one");
        }
    }
View Full Code Here


        this.asyncRequestMap.addOrReplace(request);

        if(request.isSpotRequest()){
            if (!this.remoteEnabled) {
                throw new ResourceRequestDeniedException("Spot instances are disabled");
            }

            if(this.lager.eventLog){
                logger.info(Lager.ev(-1) + "Spot Instance request arrived: " + request.toString() + ". Changing price and reallocating requests.");
            }
            changePriceAndAllocateRequests();
        } else {
            if (!this.backfillEnabled) {
                throw new ResourceRequestDeniedException("Backfill is disabled");
            }
            if(this.lager.eventLog){
                logger.info(Lager.ev(-1) + "Backfill request arrived: " + request.toString() + ".");
            }
            allocateBackfillRequests();
View Full Code Here

TOP

Related Classes of org.nimbustools.api.services.rm.ResourceRequestDeniedException

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.