Package org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05

Examples of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument


 
 
  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


 
  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

          appDepType.getApplicationEnvironmentArray(), appDepType);
    }

   
    if (appDepType.getExecutableLocation() != null) {
      FileNameType fNameType = FileNameType.Factory.newInstance();
      fNameType.setStringValue(appDepType.getExecutableLocation());
      if(isParallelJob(appDepType)) {
        JSDLUtils.getOrCreateSPMDApplication(value).setExecutable(fNameType);
        JSDLUtils.getSPMDApplication(value).setSPMDVariation(getSPMDVariation(appDepType));
       
        if(getValueFromMap(appDepType, JSDLUtils.NUMBEROFPROCESSES)!=null){
View Full Code Here

        .addNewArgument().setStringValue(stringPrm);

  }
 
  public static void setApplicationStdErr(JobDefinitionType value, HpcApplicationDeploymentType appDepType, String stderr) {
    FileNameType fName = FileNameType.Factory.newInstance();
    fName.setStringValue(stderr);
    if (isParallelJob(appDepType))
      JSDLUtils.getOrCreateSPMDApplication(value).setError(fName);
    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setError(fName);
  }
View Full Code Here

    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setError(fName);
  }
 
  public static void setApplicationStdOut(JobDefinitionType value, HpcApplicationDeploymentType appDepType, String stderr) {
    FileNameType fName = FileNameType.Factory.newInstance();
    fName.setStringValue(stderr);
    if (isParallelJob(appDepType))
      JSDLUtils.getOrCreateSPMDApplication(value).setOutput(fName);
    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setOutput(fName);
  }
View Full Code Here

  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

      return createResponseDocument(  );
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return createResponseDocument(  );
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument

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.