Package org.apache.airavata.schemas.gfac

Examples of org.apache.airavata.schemas.gfac.ProjectAccountType


        ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        name.setStringValue(serviceName);
        app.setApplicationName(name);
        ProjectAccountType projectAccountType = app.addNewProjectAccount();
        projectAccountType.setProjectAccountNumber("uot111");

        QueueType queueType = app.addNewQueue();
        queueType.setQueueName("normal");

        app.setCpuCount(1);
View Full Code Here


        ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        name.setStringValue(serviceName);
        app.setApplicationName(name);
        ProjectAccountType projectAccountType = app.addNewProjectAccount();
        projectAccountType.setProjectAccountNumber("TG-MCB070039N");

        QueueType queueType = app.addNewQueue();
        queueType.setQueueName("normal");

        app.setCpuCount(1);
View Full Code Here

        ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        name.setStringValue(serviceName);
        app.setApplicationName(name);
        ProjectAccountType projectAccountType = app.addNewProjectAccount();
        projectAccountType.setProjectAccountNumber("TG-MCB070039N");

        QueueType queueType = app.addNewQueue();
        queueType.setQueueName("normal");

        app.setCpuCount(1);
View Full Code Here

        ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        name.setStringValue("EchoLocal");
        app.setApplicationName(name);
        ProjectAccountType projectAccountType = app.addNewProjectAccount();
        projectAccountType.setProjectAccountNumber("sds128");

        QueueType queueType = app.addNewQueue();
        queueType.setQueueName("normal");

        app.setCpuCount(1);
View Full Code Here

        ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        name.setStringValue("EchoLocal");
        app.setApplicationName(name);
        ProjectAccountType projectAccountType = app.addNewProjectAccount();
        projectAccountType.setProjectAccountNumber("sds128");

        QueueType queueType = app.addNewQueue();
        queueType.setQueueName("normal");

        app.setCpuCount(1);
        app.setJobType(JobTypeType.SERIAL);
        app.setNodeCount(1);
        app.setProcessorsPerNode(1);
        app.setMaxWallTime(10);
        /*
           * Use bat file if it is compiled on Windows
           */
        app.setExecutableLocation("/bin/echo");

        /*
           * Default tmp location
           */
        String tempDir = "/oasis/scratch/trestles/ogce/temp_project/";

    
        app.setScratchWorkingDirectory(tempDir);
        app.setInstalledParentPath("/opt/torque/bin/");

        try {
            airavataAPI.getApplicationManager().saveApplicationDescription(serviceName, trestleshpcHostAddress, appDesc);
        } catch (AiravataAPIInvocationException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }

         /*
        * Service Description creation and saving
        */
        String wrfserviceName = "WRF";
        ServiceDescription wrfServ = new ServiceDescription();
        wrfServ.getType().setName(wrfserviceName);

        List<InputParameterType> wrfinputList = new ArrayList<InputParameterType>();
        List<OutputParameterType> wrfoutputList = new ArrayList<OutputParameterType>();


        InputParameterType wrfinput1 = InputParameterType.Factory.newInstance();
        wrfinput1.setParameterName("WRF_Namelist");
        ParameterType wrfparameterType1 = wrfinput1.addNewParameterType();
        wrfparameterType1.setType(DataType.URI);
        wrfparameterType1.setName("URI");

        InputParameterType wrfinput2 = InputParameterType.Factory.newInstance();
        wrfinput2.setParameterName("WRF_Input_File");
        ParameterType wrfparameterType2 = wrfinput2.addNewParameterType();
        wrfparameterType2.setType(DataType.URI);
        wrfparameterType2.setName("URI");

        InputParameterType wrfinput3 = InputParameterType.Factory.newInstance();
        wrfinput3.setParameterName("WRF_Boundary_File");
        ParameterType wrfparameterType3 = wrfinput3.addNewParameterType();
        wrfparameterType3.setType(DataType.URI);
        wrfparameterType3.setName("URI");

        OutputParameterType wrfOutput1 = OutputParameterType.Factory.newInstance();
        wrfOutput1.setParameterName("WRF_Output");
        ParameterType wrfoutparameterType1 = wrfOutput1.addNewParameterType();
        wrfoutparameterType1.setType(DataType.URI);
        wrfoutparameterType1.setName("URI");

        OutputParameterType wrfOutput2 = OutputParameterType.Factory.newInstance();
        wrfOutput2.setParameterName("WRF_Execution_Log");
        ParameterType wrfoutparameterType2 = wrfOutput2.addNewParameterType();
        wrfoutparameterType2.setType(DataType.URI);
        wrfoutparameterType2.setName("URI");

        wrfinputList.add(wrfinput1);
        wrfinputList.add(wrfinput2);
        wrfinputList.add(wrfinput3);
        wrfoutputList.add(wrfOutput1);
        wrfoutputList.add(wrfOutput2);

        InputParameterType[] wrfinputParamList = wrfinputList.toArray(new InputParameterType[wrfinputList.size()]);
        OutputParameterType[] wrfoutputParamList = wrfoutputList.toArray(new OutputParameterType[wrfoutputList.size()]);

        wrfServ.getType().setInputParametersArray(wrfinputParamList);
        wrfServ.getType().setOutputParametersArray(wrfoutputParamList);
        try {
            airavataAPI.getApplicationManager().saveServiceDescription(wrfServ);
        } catch (AiravataAPIInvocationException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }

        /*
            Application descriptor creation and saving
         */
        ApplicationDescription wrfAppDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType wrfApp = (HpcApplicationDeploymentType) wrfAppDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName wrfName = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        wrfName.setStringValue("WRF");
        wrfApp.setApplicationName(wrfName);
        ProjectAccountType wrfprojectAccountType = wrfApp.addNewProjectAccount();
        wrfprojectAccountType.setProjectAccountNumber("sds128");

        QueueType wrfQueueType = wrfApp.addNewQueue();
        wrfQueueType.setQueueName("normal");

        wrfApp.setCpuCount(32);
View Full Code Here

        ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        name.setStringValue("EchoLocal");
        app.setApplicationName(name);
        ProjectAccountType projectAccountType = app.addNewProjectAccount();
        projectAccountType.setProjectAccountNumber("TG-STA110014S");

        QueueType queueType = app.addNewQueue();
        queueType.setQueueName("normal");

        app.setCpuCount(1);
View Full Code Here

        ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
        HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType();
        ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
        name.setStringValue("EchoLocal");
        app.setApplicationName(name);
        ProjectAccountType projectAccountType = app.addNewProjectAccount();
        projectAccountType.setProjectAccountNumber("TG-STA110014S");

        QueueType queueType = app.addNewQueue();
        queueType.setQueueName("normal");

        app.setCpuCount(1);
View Full Code Here

    ApplicationDescription appDesc1 = new ApplicationDescription(HpcApplicationDeploymentType.type);
    HpcApplicationDeploymentType app1 = (HpcApplicationDeploymentType) appDesc1.getType();
    ApplicationDeploymentDescriptionType.ApplicationName name = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
    name.setStringValue(serviceName);
    app1.setApplicationName(name);
    ProjectAccountType projectAccountType = app1.addNewProjectAccount();
    projectAccountType.setProjectAccountNumber("TG-STA110014S");

    QueueType queueType = app1.addNewQueue();
    queueType.setQueueName("normal");

    app1.setCpuCount(1);
    app1.setJobType(JobTypeType.SERIAL);
    app1.setNodeCount(1);
    app1.setProcessorsPerNode(1);
    app1.setMaxWallTime(10);
    /*
     * Use bat file if it is compiled on Windows
     */
    app1.setExecutableLocation("/bin/echo");

    /*
     * Default tmp location
     */
    String tempDir = "/home1/01437/ogce";

    app1.setScratchWorkingDirectory(tempDir);
    app1.setInstalledParentPath("/usr/bin/");

    try {
      airavataAPI.getApplicationManager().saveApplicationDescription(serviceName, stampedeHostAddress, appDesc1);
    } catch (AiravataAPIInvocationException e) {
      e.printStackTrace(); // To change body of catch statement use File |
                  // Settings | File Templates.
    }
    // Trestles
    /*
     * Application descriptor creation and saving
     */
    ApplicationDescription appDesc2 = new ApplicationDescription(HpcApplicationDeploymentType.type);
    HpcApplicationDeploymentType app2 = (HpcApplicationDeploymentType) appDesc2.getType();
    ApplicationDeploymentDescriptionType.ApplicationName name2 = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
    name2.setStringValue(serviceName);
    app2.setApplicationName(name);
    ProjectAccountType projectAccountType2 = app2.addNewProjectAccount();
    projectAccountType2.setProjectAccountNumber("sds128");

    QueueType queueType2 = app2.addNewQueue();
    queueType2.setQueueName("normal");

    app2.setCpuCount(1);
    app2.setJobType(JobTypeType.SERIAL);
    app2.setNodeCount(1);
    app2.setProcessorsPerNode(1);
    app2.setMaxWallTime(10);
    /*
     * Use bat file if it is compiled on Windows
     */
    app2.setExecutableLocation("/bin/echo");

    /*
     * Default tmp location
     */
    String tempDir2 = "/home/ogce/scratch";

    app2.setScratchWorkingDirectory(tempDir2);
    app2.setInstalledParentPath("/opt/torque/bin/");

    try {
      airavataAPI.getApplicationManager().saveApplicationDescription(serviceName, trestleshpcHostAddress, appDesc2);
    } catch (AiravataAPIInvocationException e) {
      e.printStackTrace(); // To change body of catch statement use File |
                  // Settings | File Templates.
    }
    // Lonestar
    /*
     * Application descriptor creation and saving
     */
    ApplicationDescription appDesc3 = new ApplicationDescription(HpcApplicationDeploymentType.type);
    HpcApplicationDeploymentType app3 = (HpcApplicationDeploymentType) appDesc3.getType();
    ApplicationDeploymentDescriptionType.ApplicationName name3 = ApplicationDeploymentDescriptionType.ApplicationName.Factory.newInstance();
    name3.setStringValue(serviceName);
    app3.setApplicationName(name);
    ProjectAccountType projectAccountType3 = app3.addNewProjectAccount();
    projectAccountType3.setProjectAccountNumber("TG-STA110014S");

    QueueType queueType3 = app3.addNewQueue();
    queueType3.setQueueName("normal");

    app3.setCpuCount(1);
View Full Code Here

    }
      if (isValueNotEmpty(txtMaxMemory.getText())) {
              getGramApplicationDescriptionType().setMaxMemory(
                      Integer.parseInt(txtMaxMemory.getText()));
          }
    ProjectAccountType projectAccount = getProjectAccountType();
    if (isValueNotEmpty(txtProjectAccountNumber.getText())) {
      projectAccount.setProjectAccountNumber(txtProjectAccountNumber
          .getText());
    }
    if (isValueNotEmpty(txtProjectAccountDescription.getText())) {
      projectAccount
          .setProjectAccountDescription(txtProjectAccountDescription
              .getText());
    }
    if (isValueNotEmpty(txtQueueType.getText())) {
      QueueType queueName = getQueueName();
View Full Code Here

    txtStaticWorkingDirectory.setText(gadType.getStaticWorkingDirectory()==null? "":String.valueOf(gadType.getStaticWorkingDirectory()));
        txtCpuCount.setText(String.valueOf(gadType.getCpuCount()));
        txtProcessorsPerNode.setText(String.valueOf(gadType.getProcessorsPerNode()));
        txtMinMemory.setText(String.valueOf(gadType.getMinMemory()));
        txtMaxMemory.setText(String.valueOf(gadType.getMaxMemory()));
    ProjectAccountType projectAccount = getProjectAccountType();

    txtProjectAccountNumber.setText(projectAccount.getProjectAccountNumber()==null? "":projectAccount.getProjectAccountNumber());
    txtProjectAccountDescription.setText(projectAccount.getProjectAccountDescription()==null? "":projectAccount.getProjectAccountDescription());

    QueueType queueName = getQueueName();
    txtQueueType.setText(queueName.getQueueName()==null?"":queueName.getQueueName());
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.schemas.gfac.ProjectAccountType

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.