Examples of EnvironmentType


Examples of org.ggf.schemas.jsdl.x2005.x11.jsdlPosix.EnvironmentType

 
  public static void createApplicationEnvironment(JobDefinitionType value, NameValuePairType[] nameValuePairs, HpcApplicationDeploymentType appDepType) {
   
    if(isParallelJob(appDepType)) {
      for (NameValuePairType nv : nameValuePairs) {
        EnvironmentType envType = JSDLUtils.getOrCreateSPMDApplication(value).addNewEnvironment();
        envType.setName(nv.getName());
        envType.setStringValue(nv.getValue());
      }
    }
    else {
      for (NameValuePairType nv : nameValuePairs) {
        EnvironmentType envType = JSDLUtils.getOrCreatePOSIXApplication(value).addNewEnvironment();
        envType.setName(nv.getName());
        envType.setStringValue(nv.getValue());
      }
    }

  }
View Full Code Here

Examples of org.jboss.security.xacml.core.model.context.EnvironmentType

    private RequestContext getRequestContext(String reqTradeAppr, String reqCreditAppr, int buyPrice) throws Exception {
        final RequestType request = new RequestType();
        request.getSubject().add(createSubject(reqTradeAppr, reqCreditAppr, buyPrice));
        request.getResource().add(createResource());
        request.setAction(createAction());
        request.setEnvironment(new EnvironmentType());

        final RequestContext requestCtx = RequestResponseContextFactory.createRequestCtx();
        requestCtx.setRequest(request);

        return requestCtx;
View Full Code Here

Examples of org.jclouds.dmtf.ovf.environment.EnvironmentType

      checkResourceEntityType(template, ready);
   }

   public static void checkVm(Vm vm) {
      // Check optional fields
      EnvironmentType environment = vm.getEnvironment();
      if (environment != null) checkEnvironmentType(environment);
      // NOTE vAppScopedLocalId cannot be checked
      // NOTE needsCustomization cannot be checked
     
      // Check parent type
View Full Code Here

Examples of org.ogf.schemas.jsdl.posix.EnvironmentType

    public static final String NUMBEROFPROCESSES = "NumberOfProcesses";
    public static final String THREADSPERHOST = "ThreadsPerHost";

    public static EnvironmentType addEnvVariable(JobDefinitionType def, String name, String value) {
        POSIXApplicationType posixApp = getOrCreatePOSIXApplication(def);
        EnvironmentType newEnv = posixApp.addNewEnvironment();
        newEnv.setName(name);
        newEnv.setStringValue(value);
        return newEnv;
    }
View Full Code Here

Examples of org.opensaml.xacml.ctx.EnvironmentType

                    null,
                    Collections.singletonList(environmentAttributeValue)
            );
        attributes.clear();
        attributes.add(environmentAttribute);
        EnvironmentType environmentType =
             RequestComponentBuilder.createEnvironmentType(attributes);
       
        // Request
        RequestType request =
            RequestComponentBuilder.createRequestType(
View Full Code Here

Examples of org.opensaml.xacml.ctx.EnvironmentType

                        null,
                        Collections.singletonList(environmentAttributeValue)
                );
            attributes.add(environmentAttribute);
        }
        EnvironmentType environmentType =
            RequestComponentBuilder.createEnvironmentType(attributes);
       
        // Request
        RequestType request =
            RequestComponentBuilder.createRequestType(
View Full Code Here

Examples of org.opensaml.xacml.policy.EnvironmentType

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        EnvironmentType environmentType = (EnvironmentType) parentXMLObject;
       
        if(childXMLObject instanceof EnvironmentMatchType){
            environmentType.getEnvrionmentMatches().add((EnvironmentMatchType)childXMLObject);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.