Package org.jfx4ee.adm4ee.business.server.boundary

Examples of org.jfx4ee.adm4ee.business.server.boundary.ServerHandler


        } else if (commandLine.hasOption("create")) {
            createDomain();
           
        } else if (commandLine.hasOption("start")) {
            Domain domain = getDomain(commandLine.getOptionValue("start"));
            ServerHandler serverHandler = ServerHandler.getInstance(domain);
            Server server = serverHandler.getServer();
            server.initLocalServer();
            CommandResult result = server.startDomain(domain.getDomainName());
            System.exit(result.getExitCode());

        } else if (commandLine.hasOption("stop")) {
            Domain domain = getDomain(commandLine.getOptionValue("stop"));
            ServerHandler serverHandler = ServerHandler.getInstance(domain);
            Server server = serverHandler.getServer();
            server.initLocalServer();
            server.initLocalDomain();
            CommandResult result = server.stopDomain();
            System.exit(result.getExitCode());
View Full Code Here


        }
    }

    protected void ping() {
        Domain domain = getDomain(commandLine.getOptionValue("ping"));
        ServerHandler serverHandler = ServerHandler.getInstance(domain);
        Server server = serverHandler.getServer();
        server.initLocalServer();
        server.initLocalDomain();
        CommandResult result = server.pingManagementResource();
        if (result.isOk()) {
            System.out.println("SUCCESS");
View Full Code Here

        System.exit(result.getExitCode());
    }

    protected void listApplications() {
        Domain domain = getDomain(commandLine.getOptionValue("applications"));
        ServerHandler serverHandler = ServerHandler.getInstance(domain);
        Server server = serverHandler.getServer();
        server.initLocalServer();
        server.initLocalDomain();
        try {
            Set<String> applications = server.getInstalledApplications();
            System.out.println(applications);
View Full Code Here

        }
    }

    protected void watchdog() {
        Domain domain = getDomain(commandLine.getOptionValue("watchdog"));
        ServerHandler serverHandler = ServerHandler.getInstance(domain);
        Server server = serverHandler.getServer();
        server.initLocalServer();
        server.initLocalDomain();
        CommandResult result = server.pingManagementResource();
        if (!result.isOk()) {
            System.out.println("Domain is not accessable: " + result.getExitCode() + " " + result.getExitCodeInfo());
View Full Code Here

        domain.setServerRootPath(commandLine.getOptionValue("serverpath"));
        domain.setDomainUser(commandLine.getOptionValue("user"));
        domain.setDomainPassword(commandLine.getOptionValue("password"));
       
        // Init the server
        ServerHandler serverHandler = ServerHandler.getInstance(domain);
        Server server = serverHandler.getServer();
        server.initLocalServer();
       
        // Check if there is a template
        File template = null;
        if (commandLine.hasOption("template")) {
View Full Code Here

            if (getDomain() != null) {

                // Need a configured domain name here!
                // At least a server type must be set!
                ServerHandler serverHandler = ServerHandler.getInstance(getDomain());
                Server server = serverHandler.getServer();

                //TODO: error message when server null
                setServer(server);

                // For local initialization (includes remote) required values are:
View Full Code Here

TOP

Related Classes of org.jfx4ee.adm4ee.business.server.boundary.ServerHandler

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.