Package org.nimbustools.api.repr

Examples of org.nimbustools.api.repr.Caller


        final int memory = 64;
        final int numNodes = 1;
        final CreateRequest creq =
                this.populator().getCreateRequest("suite:failure:unpropOneFail",
                                                  durationSecs, memory, numNodes);
        final Caller caller = this.populator().getCaller();
        final CreateResult result = rm.create(creq, caller);

        final VM[] vms = result.getVMs();
        assertEquals(1, vms.length);
        assertNotNull(vms[0]);
View Full Code Here


            throw new RemoteException("The describeImages operation has " +
                    "been disabled by the administrator.");
        }

        // no use proceeding if these calls fail:
        final Caller caller = this.container.getCaller();
        final String ownerID;
        try {
            ownerID = this.container.getOwnerID(caller);
        } catch (CannotTranslateException e) {
            throw new RemoteException(e.getMessage(), e);
View Full Code Here

     */
    public void start(String callerDN) throws OperationDisabledException,
                                              ManageException,
                                              DoesNotExistException {

        final Caller caller = this.translate.getCaller(callerDN);
        this.manager.start(this.id, Manager.INSTANCE, caller);
    }
View Full Code Here

            throws OperationDisabledException,
                   ManageException,
                   DoesNotExistException,
                   URISyntaxException {

        final Caller caller = this.translate.getCaller(callerDN);

        final ShutdownTasks tasks =
                this.translate.getShutdownTasks(postTask, appendID);

        if (ShutdownEnumeration.Normal.equals(shutdownEnum)) {
View Full Code Here

       
        // ------------------------------------------
        // translate WS inputs into plain vws objects
        // ------------------------------------------
        _CreateRequest cReq = this.translate.getCreateRequest(req);
        final Caller caller = this.translate.getCaller(callerDN);

        // --------------------------------------
        // handle context broker related requests
        // --------------------------------------
        final EndpointReferenceType ctxEPR;
View Full Code Here

        if (req == null) {
            throw new RemoteException("RunInstancesType request is missing");
        }

        final Caller caller = this.container.getCaller();

        final CreateResult result;
        try {
            CreateRequest creq =
                    this.run.translateRunInstances(req, caller);
View Full Code Here

        if (req == null) {
            throw new RemoteException("DescribeInstancesType request is missing");
        }

        final Caller caller = this.container.getCaller();
        final boolean result = this.reboot.reboot(req, caller, this.manager);
        return new RebootInstancesResponseType(result, "");
        // TODO do something real with requestId
    }
View Full Code Here

        if (req == null) {
            throw new RemoteException("DescribeInstancesType request is missing");
        }

        final Caller caller = this.container.getCaller();
        try {
            final String[] instanceIDs = this.describe.findQueryIDs(req);
            final VM[] vms = this.manager.getAllByCaller(caller);
            final String ownerID = this.container.getOwnerID(caller);
            return this.describe.translate(vms, instanceIDs, ownerID);
View Full Code Here

            throws RemoteException {

        if (req == null) {
            throw new RemoteException("TerminateInstancesType request is missing");
        }
        final Caller caller = this.container.getCaller();
        return this.terminate.terminate(req, caller, this.manager);
    }
View Full Code Here

        if (req == null) {
            throw new RemoteException("requestSpotInstances request is missing");
        }
       
        final Caller caller = this.container.getCaller();

        return this.reqSI.requestSpotInstances(req, caller, this.manager);       
    }
View Full Code Here

TOP

Related Classes of org.nimbustools.api.repr.Caller

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.