Package org.nimbustools.api.services.rm

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


        this.opIntake("SHUTDOWN", id, type, caller);

        switch (type) {
            case INSTANCE: this.home.find(id).shutdown(tasks); break;
            case GROUP: this.ghome.find(id).shutdown(tasks); break;
            default: throw new ManageException(
                                "Unknown/unhandled type: " + trType(type));
        }

    }
View Full Code Here


        this.opIntake("SHUTDOWN-SAVE", id, type, caller);

        switch (type) {
            case INSTANCE: this.home.find(id).shutdownSave(tasks); break;
            case GROUP: this.ghome.find(id).shutdownSave(tasks); break;
            default: throw new ManageException(
                                "Unknown/unhandled type: " + trType(type));
        }
    }
View Full Code Here

        this.opIntake("PAUSE", id, type, caller);
       
        switch (type) {
            case INSTANCE: this.home.find(id).pause(tasks); break;
            case GROUP: this.ghome.find(id).pause(tasks); break;
            default: throw new ManageException(
                                "Unknown/unhandled type: " + trType(type));
        }
    }
View Full Code Here

        this.opIntake("SERIALIZE", id, type, caller);

        switch (type) {
            case INSTANCE: this.home.find(id).serialize(tasks); break;
            case GROUP: this.ghome.find(id).serialize(tasks); break;
            default: throw new ManageException(
                                "Unknown/unhandled type: " + trType(type));
        }
    }
View Full Code Here

        this.opIntake("REBOOT", id, type, caller);
       
        switch (type) {
            case INSTANCE: this.home.find(id).reboot(tasks); break;
            case GROUP: this.ghome.find(id).reboot(tasks); break;
            default: throw new ManageException(
                                "Unknown/unhandled type: " + trType(type));
        }
    }
View Full Code Here

       
        switch (type) {
            case INSTANCE: return this.home.find(id).getTerminationTime();
            case GROUP: return null;
            case COSCHEDULED: return null;
            default: throw new ManageException(
                                "Unknown/unhandled type: " + trType(type));
        }
    }
View Full Code Here

    public Caller[] getAuthorizedManagers(String id, int type)
            throws DoesNotExistException, ManageException {

        final String creatorID = this._getManagerID(id, type);
        if (creatorID == null) {
            throw new ManageException("creatorID may not be null");
        }
       
        final _Caller caller = this.repr._newCaller();
        caller.setIdentity(creatorID);
        return new Caller[]{caller};
View Full Code Here

            throws DoesNotExistException, ManageException {

        try {
            return this.getVM(this.home.find(id));
        } catch (CannotTranslateException e) {
            throw new ManageException(e.getMessage(), e);
        }
    }
View Full Code Here

                return this.getGroup(id);

            case COSCHEDULED:
                return this.getCosched(id);

            default: throw new ManageException(
                                "Unknown/unhandled type: " + trType(type));
        }
    }
View Full Code Here

                    this.home.findByCaller(caller.getIdentity());

            return this.getInstances(rsrcs);
           
        } catch (CannotTranslateException e) {
            throw new ManageException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

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

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.