Package org.jfx4ee.adm4ee.business.configuration.entity

Examples of org.jfx4ee.adm4ee.business.configuration.entity.Application


            try {
                Set<String> installedApplications = getInstalledApplications();
                if (installedApplications != null) {
                    List<Application> apps = new ArrayList<>();
                    for (String applicationName : installedApplications) {
                        Application app = new Application(applicationName);
                        apps.add(app);
                    }
                    domain.setApplications(apps);
                }
            } catch (Exception e) {
View Full Code Here


            List<Application> applications = domain.getApplications();
            assertNotNull(applications);
            assertTrue(applications.size() > 0);

            Application app = applications.get(0);
            assertNotNull(app);
            assertEquals("WebTest", app.getName());

            List<Database> databases = domain.getDatabases();
            assertNotNull(databases);

            Database db = databases.get(0);
View Full Code Here

   
    @Test
    public void getApplicationsIT() {
        System.out.println("getApplications(): ");
        List<Application> apps = new ArrayList<>();
        Application app = new Application("WebTest3");
        app.setUpdateUrl("http://localhost:8080/WebTEst4/appcast/appcast.xml");
        apps.add(app);
        domain.setApplications(apps);

        server.refreshApplicationStatus();       
        List<Application> applications = server.getApplications();
       
        System.out.println("Status: " + applications);
        assertNotNull(applications);
        assertTrue(applications.size() > 0);
        Application a = applications.get(0);
        assertNotNull(a.getVersion());
    }
View Full Code Here

   
    @Test
    public void updateApplicationIT() throws Exception {
        System.out.println("updateApplication(): ");
        List<Application> apps = new ArrayList<>();
        Application app = new Application("WebTest");
        app.setUpdateUrl(getClass().getResource("/appcast.xml").toURI().toURL().toString());
        apps.add(app);
        domain.setApplications(apps);
        //server.domain = domain;
        server.refreshApplicationStatus();
        System.out.println(domain.getApplications());
View Full Code Here

                    // Not a file
                    logger.log(Level.SEVERE, "Template directory ''{0}'' is not a directory!", templatePath);
                    result.setResult("Invalid Template directory");
                } else {
                    Path templateApplicationsPath = templatePath.resolve(DOMAIN_APPLICATIONS_DIR);
                    Application application = domain.getApplication(applicationName);
                    if (application != null) {
                        ApplicationStatus status = application.getStatus();
                        if (status != null) {
                            Appcast appcast = status.getAppcast();
                            if (appcast != null) {
                                Set<Path> files = updater.update(applicationName, appcast, templateApplicationsPath);
                                result.setExitCodeOk();
View Full Code Here

            try {
                Set<String> installedApplications = getInstalledApplications();
                if (installedApplications != null) {
                    List<Application> apps = new ArrayList<>();
                    for (String applicationName : installedApplications) {
                        Application app = new Application(applicationName);
                        apps.add(app);
                    }
                    domain.setApplications(apps);
                }
            } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.jfx4ee.adm4ee.business.configuration.entity.Application

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.