Package org.nimbustools.api.repr

Examples of org.nimbustools.api.repr.Caller


                         String callerDN) 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


    // -------------------------------------------------------------------------

    public CurrentWorkspaces_Type queryCurrentWorkspaces(String callerDN)
            throws ManageException, CannotTranslateException {
       
        final Caller caller = this.translate.getCaller(callerDN);
        final VM[] vms = this.manager.getAllByCaller(caller);
        return this.translate.getCurrentWorkspaces_Type(vms);
    }
View Full Code Here

    }

    public UsedAndReservedTime_Type queryUsedAndReservedTime(String callerDN)
            throws ManageException, CannotTranslateException {

        final Caller caller = this.translate.getCaller(callerDN);
        final Usage usage = this.manager.getCallerUsage(caller);
        return this.translate.getUsedAndReserved(usage);
    }
View Full Code Here

    @Test(threadPoolSize = 10, invocationCount = 10, timeOut = 10000)
    public void parallelIdempotencyTest() throws Exception {

        final Manager rm = this.locator.getManager();

        final Caller caller = this.populator().getCaller();
        final CreateRequest request1 =
                this.populator().getIdempotentCreateRequest("suite:basic:idempotency",
                        parallelIdempotencyTestToken);
        final CreateResult result1 = rm.create(request1, caller);
View Full Code Here

        final Manager rm = this.locator.getManager();

        VM[] allvms = rm.getGlobalAll();
        assertEquals(0, allvms.length);

        final Caller caller = this.populator().getCaller();
        final CreateResult result =
                rm.create(this.populator().getCreateRequest("suite:failure:leaseOne"),
                          caller);

        final VM[] vms = result.getVMs();
View Full Code Here

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

        final VM[] vms = result.getVMs();
        assertEquals(5, vms.length);
        for (int i = 0; i < vms.length; i++) {
View Full Code Here

        final int memory = 64;
        final int numNodes = 1;
        final CreateRequest creq =
                this.populator().getCreateRequest("suite:failure:leaseOneWait",
                                                  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

        final int memory = 64;
        final int numNodes = 1;
        final CreateRequest creq =
                this.populator().getCreateRequest("suite:failure:unpropOneWait",
                                                  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

        VM[] allvms = rm.getGlobalAll();
        assertEquals(0, allvms.length);
       
        MockShutdownTrash.resetFailCount();

        final Caller caller = this.populator().getCaller();
        final CreateResult result =
                rm.create(this.populator().getCreateRequest("suite:failure:basicFail"),
                          caller);

        final VM[] vms = result.getVMs();
View Full Code Here

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

        final VM[] vms = result.getVMs();
        assertEquals(5, vms.length);
        for (int i = 0; i < vms.length; i++) {
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.