Changeset e8979e2 for axis/Create.java


Ignore:
Timestamp:
Jan 24, 2012 4:55:15 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
6a50b78
Parents:
94a6661
Message:

Add example of requesting project on testbed to Create (and build)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • axis/Create.java

    r94a6661 re8979e2  
    9494        String certFile = "./emulab.pem";
    9595        String urlString = "https://users.isi.deterlab.net:23235";
     96        String project = null;
     97        String masterTB = "deter";
    9698
    9799        if (args.length > 0) exptName = args[0];
     
    99101        if (args.length > 2) certFile = args[2];
    100102        if (args.length > 3) urlString = args[3];
     103        if (args.length > 4) project = args[4];
     104        if (args.length > 5) masterTB = args[5];
    101105       
    102106        /*
     
    156160            new ExperimentLabels(newResp.getExperimentID());
    157161
     162        CreateServiceInfoType[] createService = null;
     163        if (project != null) {
     164            // If a project is requested, make a create service request to get
     165            // that project.
     166            createService = new CreateServiceInfoType[] {
     167                new CreateServiceInfoType(null, "project_export",
     168                        new String[] { masterTB }, null, true,
     169                        new FedAttrType[] {
     170                            new FedAttrType("project", project) })
     171            };
     172        }
     173
    158174        CreateRequestType createReq = new CreateRequestType(null,
    159175                new ExperimentDescriptionType(nsContents, topo),
    160                 null,
     176                createService,
    161177                new IDType(null, null, null, newLabels.getLocalname(), null),
    162178                null);
Note: See TracChangeset for help on using the changeset viewer.