Package org.apache.airavata.xbaya.ui.dialogs.descriptors.HostDeploymentDialog

Examples of org.apache.airavata.xbaya.ui.dialogs.descriptors.HostDeploymentDialog.HostDeployment


        JButton btnNewDeployment = new JButton("New deployment");
        btnNewDeployment.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),true,null,null,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
        try {
          HostDeployment deployDesc = hostDeploymentDialog.execute();
          if (deployDesc!=null){
            ApplicationDeploymentDescriptionType appType = deployDesc.getApplicationDescription().getType();
            if (appType.getApplicationName()==null){
              appType.addNewApplicationName();
              }
            HostDescriptionType hostType = deployDesc.getHostDescription().getType();
            appType.getApplicationName().setStringValue(hostType.getHostName()+"_application");
            getDeployments().put(hostType.getHostName(), deployDesc);
            updateDeploymentTable();
          }
        } catch (AiravataAPIInvocationException e1) {
View Full Code Here


      updateIODataTable(descType);
        getDeployments().clear();
        try {
      Map<String, ApplicationDescription> descs = getRegistry().getApplicationManager().getApplicationDescriptors(descType.getName());
      for (String hostDescName : descs.keySet()) {
          getDeployments().put(hostDescName, new HostDeployment(getRegistry().getApplicationManager().getHostDescription(hostDescName), descs.get(hostDescName)));
      }

      updateDeploymentTable();
      Boolean selected = false;
      if (descType.getPortType()!=null && descType.getPortType().getMethod()!=null) {
View Full Code Here

  private void editSelectedDeployment() {
    String hostName = tblModelHosts.getValueAt(tblHosts.getSelectedRow(),0).toString();
    HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),false,getDeployments().get(hostName).getApplicationDescription(),hostName,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
    try {
      HostDeployment deployDesc = hostDeploymentDialog.execute();
      if (deployDesc!=null){
        getDeployments().put(deployDesc.getHostDescription().getType().getHostName(), deployDesc);
        updateDeploymentTable();
      }
    } catch (AiravataAPIInvocationException e1) {
      setError(e1.getLocalizedMessage());
      e1.printStackTrace();
View Full Code Here

        JButton btnNewDeployment = new JButton("New deployment");
        btnNewDeployment.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),true,null,null,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
        try {
          HostDeployment deployDesc = hostDeploymentDialog.execute();
          if (deployDesc!=null){
            ApplicationDeploymentDescriptionType appType = deployDesc.getApplicationDescription().getType();
            if (appType.getApplicationName()==null){
              appType.addNewApplicationName();
              }
            HostDescriptionType hostType = deployDesc.getHostDescription().getType();
            appType.getApplicationName().setStringValue(hostType.getHostName()+"_application");
            getDeployments().put(hostType.getHostName(), deployDesc);
            updateDeploymentTable();
          }
        } catch (RegistryException e1) {
View Full Code Here

      updateIODataTable(descType);
        getDeployments().clear();
        try {
      Map<String, ApplicationDeploymentDescription> descs = getRegistry().getApplicationDescriptors(descType.getName());
      for (String hostDescName : descs.keySet()) {
          getDeployments().put(hostDescName, new HostDeployment(getRegistry().getHostDescriptor(hostDescName), descs.get(hostDescName)));
      }

      updateDeploymentTable();
      Boolean selected = false;
      if (descType.getPortType()!=null && descType.getPortType().getMethod()!=null) {
View Full Code Here

  private void editSelectedDeployment() {
    String hostName = tblModelHosts.getValueAt(tblHosts.getSelectedRow(),0).toString();
    HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),false,getDeployments().get(hostName).getApplicationDescription(),hostName,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
    try {
      HostDeployment deployDesc = hostDeploymentDialog.execute();
      if (deployDesc!=null){
        getDeployments().put(deployDesc.getHostDescription().getType().getHostName(), deployDesc);
        updateDeploymentTable();
      }
    } catch (RegistryException e1) {
      setError(e1.getLocalizedMessage());
      e1.printStackTrace();
View Full Code Here

        btnNewDeployment.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),true,null,null,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
        try {
          HostDeployment deployDesc = hostDeploymentDialog.execute();
          if (deployDesc!=null){
            ApplicationDeploymentDescriptionType appType = deployDesc.getApplicationDescription().getType();
            if (appType.getApplicationName()==null){
              appType.addNewApplicationName();
              }
            HostDescriptionType hostType = deployDesc.getHostDescription().getType();
            appType.getApplicationName().setStringValue(hostType.getHostName()+"_application");
            getDeployments().put(hostType.getHostName(), deployDesc);
            updateDeploymentTable();
          }
        } catch (RegistryException e1) {
View Full Code Here

      updateIODataTable(descType);
      try {
        getDeployments().clear();
      Map<HostDescription, List<ApplicationDeploymentDescription>> descs = getRegistry().searchDeploymentDescription(descType.getName());
      for (HostDescription hostDesc : descs.keySet()) {
        getDeployments().put(hostDesc.getType().getHostName(),new HostDeployment(hostDesc, descs.get(hostDesc).get(0)));
      }
    } catch (RegistryException e) {
      e.printStackTrace();
    }
      updateDeploymentTable();
View Full Code Here

  private void editSelectedDeployment() {
    String hostName = tblModelHosts.getValueAt(tblHosts.getSelectedRow(),0).toString();
    HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),false,getDeployments().get(hostName).getApplicationDescription(),hostName,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
    try {
      HostDeployment deployDesc = hostDeploymentDialog.execute();
      if (deployDesc!=null){
        getDeployments().put(deployDesc.getHostDescription().getType().getHostName(), deployDesc);
        updateDeploymentTable();
      }
    } catch (RegistryException e1) {
      setError(e1.getLocalizedMessage());
      e1.printStackTrace();
View Full Code Here

        JButton btnNewDeployment = new JButton("New deployment");
        btnNewDeployment.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        HostDeploymentDialog hostDeploymentDialog = new HostDeploymentDialog(getRegistry(),true,null,null,Arrays.asList(getDeployments().keySet().toArray(new String[]{})));
        try {
          HostDeployment deployDesc = hostDeploymentDialog.execute();
          if (deployDesc!=null){
            ApplicationDeploymentDescriptionType appType = deployDesc.getApplicationDescription().getType();
            if (appType.getApplicationName()==null){
              appType.addNewApplicationName();
              }
            HostDescriptionType hostType = deployDesc.getHostDescription().getType();
            appType.getApplicationName().setStringValue(hostType.getHostName()+"_application");
            getDeployments().put(hostType.getHostName(), deployDesc);
            updateDeploymentTable();
          }
        } catch (AiravataAPIInvocationException e1) {
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.ui.dialogs.descriptors.HostDeploymentDialog.HostDeployment

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.