Package org.globus.workspace

Examples of org.globus.workspace.ProgrammingError


                                                                 this.lager,
                                                                 vmids[i],
                                                                 greedy,
                                                                 preemptable);
                if (nodes[i] == null) {
                    throw new ProgrammingError(
                                    "returned node should not be null");
                }
            } catch (ImpossibleAmountOfMemoryException e) {
                throw e;
            } catch (NotEnoughMemoryException e) {
View Full Code Here


        logger.debug("found resource = " + resource);

        final VirtualMachine vm = resource.getVM();
        if (vm == null) {
            throw new ProgrammingError("vm is null");
        }

        final String node = vm.getNode();
        if (node == null) {
            logger.warn(Lager.id(vmid) + " assuming no node assignment yet " +
                    "because of ensemble not-done");
            return;
        }

        final VirtualMachineDeployment vmdep = vm.getDeployment();
        if (vmdep == null) {
            throw new ProgrammingError("deployment is null");
        }
       
        boolean preemptable = vm.isPreemptable();

        final int mem = vmdep.getIndividualPhysicalMemory();
View Full Code Here

            }

        } else if (current == STATE_PAUSED) {

            if (target == STATE_PAUSED) {
                throw new ProgrammingError("current and target are " +
                        "both paused");
            }

            req = reqFactory.unpause();
View Full Code Here

        while (en.hasMoreElements()) {

            final String assocname = (String) en.nextElement();
            final Association oldassoc = (Association) previous.get(assocname);
            if (oldassoc == null) {
                throw new ProgrammingError("all networks " +
                                    "in the hashmap should be non-null");
            }
            if (newAssocSet.containsKey(assocname)) {
                logChangedAssoc(assocname,
                                (Association)newAssocSet.get(assocname),
View Full Code Here

                                                  Connection c)
            throws ManageException, SQLException {

        final VirtualMachine vm = resource.getVM();
        if (vm == null) {
            throw new ProgrammingError("vm is null");
        }
        return getInsertVM(vm, id, c);
    }
View Full Code Here

        final int[] ids = res.getIds();

        try {

            if (bindings.length != ids.length) {
                throw new ProgrammingError(
                        "different number of IDs and requests?");
            }

            // the binding process happened before the scheduler is
            // invoked, add anything ID related now
View Full Code Here

TOP

Related Classes of org.globus.workspace.ProgrammingError

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.