Package org.nimbustools.api.repr.ctx

Examples of org.nimbustools.api.repr.ctx.Context


        final boolean isSuperuser = rs.getBoolean("creator_is_superuser");
        _Caller caller = repr._newCaller();
        caller.setIdentity(creatorDN);
        caller.setSuperUser(isSuperuser);
        // NOTE: this context isn't persisted because it doesn't seem to be used
        final Context context = repr._newContext();

        final long t = rs.getLong("creation_time");
        final String sshKeyName = rs.getString("ssh_key_name");
        final Calendar creationTime = Calendar.getInstance();
        creationTime.setTimeInMillis(t);
View Full Code Here


        Double testMaxBid = 42.0;
        boolean testSpotinstances = false;
        String testGroupID = "fake-group-id";
        boolean testIsPersistent = true;
        Caller testCaller = this.populator().getSuperuserCaller();
        Context context = null;
        String testSshKeyName = "fake-ssh-key";
        Calendar testCreationTime = Calendar.getInstance();
        testCreationTime.setTimeInMillis(424242424242l);
        String testNIC = "FakeName;FakeAssociation;FAKEMAC;NetMode;IPmethod;192.168.1.42;192.168.1.1;192.168.1.2;subnetmask;dns;hostname;null;null;null;null";
        VirtualMachine testVM = new VirtualMachine();
View Full Code Here

        if (kernel != null && kernel.getKernel() == null) {
            throw new MetadataException(
                    "RequestedKernel encountered with missing location URI");
        }

        final Context context = req.getContext();
        if (context != null) {
            if (context.getBootstrapPath() == null) {
                throw new CreationException(
                    "Context encountered with missing bootstrap path");
            }
            if (context.getBootstrapText() == null) {
                throw new CreationException(
                    "Context encountered with missing bootstrap text");
            }
        }
    }
View Full Code Here

                this.brokerHome.getDefaultBootstrapPathOnWorkspace();

        final String bootstrapText =
                this.brokerHome.getIncompleteBootstrap(ctxEPR, callerDN);

        final Context context =
                this.translate.getCtx(bootstrapPath, bootstrapText);

        cReq.setContext(context);

        return ctxEPR;
View Full Code Here

TOP

Related Classes of org.nimbustools.api.repr.ctx.Context

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.