Examples of ApplicationDescription


Examples of org.apache.airavata.commons.gfac.type.ApplicationDescription

          if (serviceDescriptionDialog.isServiceCreated()) {
          loadDescriptors();
        }
          break;
        case APPLICATION:
                ApplicationDescription a = (ApplicationDescription) getSelected();
                String[] s = dlist.get(a).split("\\$");
                ApplicationDescriptionDialog aDescriptionDialog = new ApplicationDescriptionDialog(engine, false, a, s[1], s[0]);
                aDescriptionDialog.setLocationRelativeTo(this.engine.getGUI().getFrame());
                aDescriptionDialog.open();
                if (aDescriptionDialog.isApplicationDescCreated()) {
View Full Code Here

Examples of org.apache.airavata.commons.gfac.type.ApplicationDescription

          title = "Service description";
          question = "Are you sure that you want to remove the applications associated with \""
                      + d.getType().getName() + "\"?";
          break;
        case APPLICATION:
          ApplicationDescription a = (ApplicationDescription) getSelected();
          title = "Service description";
          question = "Are you sure that you want to remove the service description \""
                      + a.getType().getApplicationName().getStringValue() + "\"?";
          break;
      }
     
       
    if (askQuestion(title, question)) {
              switch (descriptorType){
              case HOST:
                HostDescription h = (HostDescription) getSelected();
                  getRegistry().getApplicationManager().deleteHostDescription(h.getType().getHostName());
                        loadDescriptors();
                break;
              case SERVICE:
                  ServiceDescription d = (ServiceDescription) getSelected();
                  getRegistry().getApplicationManager().deleteServiceDescription(d.getType().getName());
                        loadDescriptors();
                break;
              case APPLICATION:
                ApplicationDescription a = (ApplicationDescription) getSelected();
                String[] s = dlist.get(a).split("\\$");
                  getRegistry().getApplicationManager().deleteApplicationDescription(s[0], s[1], a.getType().getApplicationName().getStringValue());
                loadDescriptors();
                        break;
              }
//        loadDescriptors();
        }
View Full Code Here

Examples of org.apache.airavata.commons.gfac.type.ApplicationDescription

            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ApplicationDescriptor applicationDescriptor = response.getEntity(ApplicationDescriptor.class);
        ApplicationDescription applicationDescription =
                DescriptorUtil.createApplicationDescription(applicationDescriptor);
        return applicationDescription;
    }
View Full Code Here

Examples of org.apache.airavata.commons.gfac.type.ApplicationDescription

            throw new RuntimeException("Failed : HTTP error code : "
                    + status);
        }

        ApplicationDescriptor applicationDescriptor = response.getEntity(ApplicationDescriptor.class);
        ApplicationDescription applicationDescription =
                DescriptorUtil.createApplicationDescription(applicationDescriptor);
        return applicationDescription;
    }
View Full Code Here

Examples of org.glassfish.jersey.server.wadl.internal.ApplicationDescription

        /* Generate WADL for that class */
        WadlGenerator wg = new WadlGeneratorResourceDocSupport(new WadlGeneratorImpl(), rdt);

        WadlBuilder wb = new WadlBuilder(wg, false, null);
        Resource resource = Resource.from(TestResource.class);
        ApplicationDescription app = wb.generate(Lists.newArrayList(resource));


        /* Confirm that it can be marshalled without error */
        StringWriter sw = new StringWriter();

        JAXBContext context = JAXBContext.newInstance(Application.class);
        Marshaller m = context.createMarshaller();
        m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);

        m.marshal(app.getApplication(), sw);
    }
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.