Examples of applicationInfo()


Examples of com.cloudbees.api.BeesClient.applicationInfo()

                if (param != null) {
                    ApplicationAlias bgApp = new ApplicationAlias(getAccount(), param);

                    // Get the current alias if any
                    ApplicationInfo applicationInfo = client.applicationInfo(appId);
                    String aliases = applicationInfo.getSettings().get("aliases");
                    ApplicationAlias currentApp = new ApplicationAlias(getAccount(), appId, aliases);

                    // If the current app has the alias already, deploy to the other app
                    if (currentApp.containAliases(bgApp.getAliases())) {
View Full Code Here

Examples of com.cloudbees.api.BeesClient.applicationInfo()

    }

    protected void checkApplication(String appId, Boolean force) throws IOException {
        BeesClient client = getBeesClient(BeesClient.class);
        try {
            client.applicationInfo(appId);
        } catch (Exception e) {
            if (force != null && force.booleanValue())
                System.err.println("WARNING: cannot find application: " + appId);
            else
                throw new IllegalArgumentException("Cannot find application: " + appId);
View Full Code Here

Examples of com.cloudbees.api.BeesClient.applicationInfo()

            String appId = null;
            BeesClient client = getBeesClient(BeesClient.class);
            BlueGreenSettings blueGreenSettings = BlueGreenSettings.getInstance(client, getAccount(), getName());

            // Get the app1 alias
            ApplicationInfo applicationInfo = client.applicationInfo(blueGreenSettings.getApplication1());
            String aliases = applicationInfo.getSettings().get("aliases");
            ApplicationAlias application1 = new ApplicationAlias(getAccount(), blueGreenSettings.getApplication1(), aliases);

            // If the app1 has the alias already, deploy to the other app
            if (application1.containAliases(blueGreenSettings.getActiveAliases())) {
View Full Code Here

Examples of com.cloudbees.api.BeesClient.applicationInfo()

    }

    protected void checkApplication(String appId, Boolean force) throws IOException {
        BeesClient client = getBeesClient(BeesClient.class);
        try {
            client.applicationInfo(appId);
        } catch (Exception e) {
            if (force != null && force.booleanValue())
                System.err.println("WARNING: cannot find application: " + appId);
            else
                throw new IllegalArgumentException("Cannot find application: " + appId);
View Full Code Here

Examples of com.cloudbees.api.BeesClient.applicationInfo()

            String appId = null;
            BeesClient client = getBeesClient(BeesClient.class);
            BlueGreenSettings blueGreenSettings = BlueGreenSettings.getInstance(client, getAccount(), getName());

            // Get the app1 alias
            ApplicationInfo applicationInfo = client.applicationInfo(blueGreenSettings.getApplication1());
            String aliases = applicationInfo.getSettings().get("aliases");
            ApplicationAlias application1 = new ApplicationAlias(getAccount(), blueGreenSettings.getApplication1(), aliases);

            // If the app1 has the alias already, deploy to the other app
            if (application1.containAliases(blueGreenSettings.getActiveAliases())) {
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.