Examples of ApplicationDescription


Examples of com.amazonaws.services.elasticbeanstalk.model.ApplicationDescription

      getLog().warn(errorMessage);

      throw new MojoFailureException(errorMessage);
    }

    ApplicationDescription desc = applications.get(0);

    List<String> configTemplates = desc.getConfigurationTemplates();

    if (bConfigurationTemplateDefined) {
      describeConfigurationTemplate(configurationTemplate);
    } else {
      for (String availConfigTemplate : configTemplates)
View Full Code Here

Examples of com.jgoodies.uif.application.ApplicationDescription

    private void configureNetwork()
    {
        // Configure XML-RPC package to use Unicode
        XmlRpc.setEncoding("UTF-8");

        ApplicationDescription description = Application.getDescription();
        System.setProperty("http.agent", description.getProductText() +
            " (" + description.getVendorURL() + ") " + System.getProperty("java.version"));
        System.setProperty("http.agent.discoverer", description.getProductText() + " Discoverer" +
            " (" + description.getVendorURL() + ") " + System.getProperty("java.version"));

        // Create and initialize caching authenticator
        IPersistenceManager persistenceManager = PersistenceManagerConfig.getManager();
        IPasswordsRepository passwordsRepository = persistenceManager.getPasswordsRepository();
        Authenticator.setDefault(new CachingAuthenticator(passwordsRepository));
View Full Code Here

Examples of com.jgoodies.uif.application.ApplicationDescription

     */
    private static synchronized ApplicationDescription getDescription()
    {
        if (description == null)
        {
            description = new ApplicationDescription(
                "BlogBridge",                    // Application short name
                "BlogBridge",                    // Application long name
                CURRENT_VERSION,                 // Version
                CURRENT_VERSION + " - " + getMonthYear(), // Full version
                Strings.message("appdescriptor.description"),     // Description
View Full Code Here

Examples of com.sun.jersey.server.wadl.ApplicationDescription

        if (baseUri == null || baseUri.length() == 0) {
            throw new BuildException("baseUri attribute required", getLocation());
        }
       
        try {
            ApplicationDescription ad = createApplication(classpath.list());
           
            WRITE_OUT_WADL : {
                Application a = ad.getApplication();
                for(Resources resources : a.getResources())
                        resources.setBase(baseUri);
                JAXBContext c = JAXBContext.newInstance("com.sun.research.ws.wadl",
                        this.getClass().getClassLoader());
                Marshaller m = c.createMarshaller();
                OutputStream out = new BufferedOutputStream(new FileOutputStream(wadlFile));
                try {
                    m.marshal(a, out);
                }
                finally {
                    out.close();
                }
            }
           
            WRITE_OUT_EXTERNAL_DATA : {
                // TODO work out how to reconsile the different paths
                File wadlChildren = new File(wadlFile.getPath() + "-/");
                wadlChildren.mkdirs();
                for (String key : ad.getExternalMetadataKeys()) {
                   
                    // Create the next file based on the key
                    //
                    File nextFile = new File(wadlChildren, "key");
                    ApplicationDescription.ExternalGrammar em = ad.getExternalGrammar( key );

                    // Write a copy to disk
                    //
                    OutputStream out = new BufferedOutputStream(new FileOutputStream(nextFile));
                    try {
View Full Code Here

Examples of net.sf.gluebooster.java.booster.essentials.meta.ApplicationDescription

    ObjectAnalyzingCodeGenerator generator = new ObjectAnalyzingCodeGenerator();
    InputStream appDescriptionXml = getClass().getResourceAsStream(
        "Sample.ApplicationDescription.xml");
    Assert.assertNotNull(appDescriptionXml);
    ApplicationDescription appDescription = XmlBoostUtils
        .readFromXml(appDescriptionXml);


    Collection<BoostedStringBuilder<String, JavaFeatureDescription>> generatedClasses = generator
        .generateApplicationDescriptionClasses(appDescription, "sample");
View Full Code Here

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

        Assert.assertTrue(airavataAPI.getApplicationManager().isServiceDescriptorExists(
                serviceDescription.getType().getName()));

        // Deployment descriptor
        ApplicationDescription applicationDeploymentDescription = descriptorBuilder
                .buildApplicationDeploymentDescription("EchoApplication", "/bin/echo", "/tmp");

        log("Adding deployment description ...");
        try {
            airavataAPI.getApplicationManager().addApplicationDescription(serviceDescription, hostDescription,
                    applicationDeploymentDescription);
            Assert.fail("Application Descriptor should already exists and should go to update.");
        } catch (DescriptorRecordAlreadyExistsException e) {

            log("Updating application description ....");
            airavataAPI.getApplicationManager().updateApplicationDescription(serviceDescription, hostDescription,
                    applicationDeploymentDescription);
        }

        Assert.assertTrue(airavataAPI.getApplicationManager().isApplicationDescriptorExists(
                serviceDescription.getType().getName(), hostDescription.getType().getHostName(),
                applicationDeploymentDescription.getType().getApplicationName().getStringValue()));

        log("Saving workflow ...");
        Workflow workflow = new Workflow(getWorkflowComposeContent("src/test/resources/EchoWorkflow.xwf"));

        try {
View Full Code Here

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

        else {
          //TODO
        }


        ApplicationDescription applicationDeploymentDescription = jobExecutionContext.getApplicationContext().getApplicationDeploymentDescription();
        ApplicationDeploymentDescriptionType app = applicationDeploymentDescription.getType();
        GridFtp ftp = new GridFtp();

        try {
            GSSCredential gssCred = ((GSISecurityContext)jobExecutionContext.getSecurityContext(GSISecurityContext.GSI_SECURITY_CONTEXT)).getGssCredentails();
View Full Code Here

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

            HostDescription registeredHost = getRegisteredHost(airavataAPI, this.serviceName);
            // if user specify a host, no matter what we pick that host for all the nodes, todo: allow users to specifi node specific host
            if(hostName != null) {
                registeredHost = airavataAPI.getApplicationManager().getHostDescription(hostName);
            }
            ApplicationDescription applicationDescription = airavataAPI.getApplicationManager().getApplicationDescription(serviceName, registeredHost.getType().getHostName());

            // When we run getInParameters we set the actualParameter object, this has to be fixed
            URL resource = EmbeddedGFacInvoker.class.getClassLoader().getResource("gfac-config.xml");
            OMElement inputMessage = getInParameters();
            Object wsifMessageElement = new WSIFMessageElement(XMLUtil.stringToXmlElement3(inputMessage.toStringWithConsume()));
View Full Code Here

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

            if (!airavataRegistry.isHostDescriptorExists(hostdescName)) {
                Response.ResponseBuilder builder = Response.status(Response.Status.INTERNAL_SERVER_ERROR);
                builder.entity("Given host does not exist...");
                return builder.build();
            }
            ApplicationDescription applicationDescription = DescriptorUtil.createApplicationDescription(applicationDescriptor);
            ServiceDescriptor serviceDescriptor = applicationDescriptor.getServiceDescriptor();
            String serviceName;
            if (serviceDescriptor != null) {
                if (serviceDescriptor.getServiceName() == null) {
                    serviceName = applicationDescriptor.getName();
View Full Code Here

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

            if (!airavataRegistry.isHostDescriptorExists(hostdescName)) {
                Response.ResponseBuilder builder = Response.status(Response.Status.INTERNAL_SERVER_ERROR);
                builder.entity("Host does not available...");
                return builder.build();
            }
            ApplicationDescription applicationDescription = DescriptorUtil.createApplicationDescription(applicationDescriptor);
            ServiceDescriptor serviceDescriptor = applicationDescriptor.getServiceDescriptor();
            String serviceName;
            if (serviceDescriptor != null) {
                if (serviceDescriptor.getServiceName() == null) {
                    serviceName = applicationDescriptor.getName();
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.