Package org.globus.workspace.service.binding.vm

Examples of org.globus.workspace.service.binding.vm.VirtualMachineDeployment


            } catch (DoesNotExistException e) {
                logger.debug("Idempotent reservation request has a terminated instance");

                final VirtualMachine vm = new VirtualMachine();
                vm.setNetwork("NONE");
                final VirtualMachineDeployment deployment = new VirtualMachineDeployment();
                vm.setDeployment(deployment);

                resource = new IdempotentInstanceResource(instance.getID(),
                        instance.getName(), null, res.getGroupId(), instances.size(),
                        instance.getLaunchIndex(), res.getCreatorId(), vm,
View Full Code Here


        Integer instanceCpuCount = null;
        Integer requestCpuCount = null;

        final VirtualMachine vm = resource.getVM();
        if (vm != null) {
            final VirtualMachineDeployment deployment = vm.getDeployment();
            if (deployment != null) {
                instanceDuration = deployment.getMinDuration();
                instanceMemory = deployment.getIndividualPhysicalMemory();
                instanceCpuCount = deployment.getIndividualCPUCount();
            }
        }

        if (request.getRequestedSchedule() != null) {
            requestDuration = request.getRequestedSchedule().getDurationSeconds();
View Full Code Here

                                       String callerID)
           
            throws SchedulingException,
                   ResourceRequestDeniedException {

        final VirtualMachineDeployment dep = vm.getDeployment();
        if (dep == null) {
            throw new SchedulingException("no deployment request");
        }

        final int memory = dep.getIndividualPhysicalMemory();
        final int cores = dep.getIndividualCPUCount();
        final int duration = dep.getMinDuration();

        // list of associations should be in the DB, perpetuation of
        // shortcut here.
        String[] assocs = null;
        final String assocStr = vm.getAssociationsNeeded();
View Full Code Here

    protected void backoutScheduling(VirtualMachine vm, Reservation reservation, String groupid) {

        logger.debug("Problem encountered mid-creation, attempting to remove " +
                     Lager.oneormanyid(reservation.getIds(), groupid) + " from scheduler.");
        try {
            final VirtualMachineDeployment dep = vm.getDeployment();
            if (dep == null) {
                throw new SchedulingException("no deployment request");
            }

            final int memory = dep.getIndividualPhysicalMemory();
            final int cores = dep.getIndividualCPUCount();
            final int duration = dep.getMinDuration();
            this.scheduler.removeScheduling(reservation, memory, cores,
                    duration, vm.isPreemptable());

        } catch (Throwable t) {
            logger.error("Problem with removing " +
View Full Code Here

            throw new CannotTranslateException("null VirtualMachine?");
        }

        final _ResourceAllocation ra = this.repr._newResourceAllocation();

        final VirtualMachineDeployment dep = vm.getDeployment();
       
        if (dep == null) {
            return ra; // *** EARLY RETURN ***
        }

        ra.setSpotInstance(vm.isPreemptable());
        ra.setArchitecture(dep.getCPUArchitecture());
        ra.setCpuPercentage(dep.getCPUPercentage());
        ra.setIndCpuSpeed(dep.getIndividualCPUSpeed());
        ra.setIndCpuCount(dep.getIndividualCPUCount());
        ra.setMemory(dep.getIndividualPhysicalMemory());
        return ra;
    }
View Full Code Here

        final VirtualMachine vm = resource.getVM();
        if (vm == null) {
            throw new CannotTranslateException("null VirtualMachine?");
        }
        final VirtualMachineDeployment dep = vm.getDeployment();
        if (dep == null) {
            throw new CannotTranslateException("null deployment information?");
        }
        schedule.setDurationSeconds(dep.getMinDuration());

        return schedule;
    }
View Full Code Here

TOP

Related Classes of org.globus.workspace.service.binding.vm.VirtualMachineDeployment

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.