Package com.heroku.api.request.ps

Examples of com.heroku.api.request.ps.Scale


     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param processType Process name. See {@link #listProcesses} for a list of processes that can be used.
     * @param quantity The number to scale the process to.
     */
    public void scaleProcess(String appName, String processType, int quantity) {
        connection.execute(new Scale(appName, processType, quantity), apiKey);
    }
View Full Code Here


        }
    }

    @Test(dataProvider = "clonedApp", retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testScaleCommand(App app) {
        Request<Unit> req = new Scale(app.getName(), "web", 1);
        Unit response = connection.execute(req, apiKey);
        assertNotNull(response);
    }
View Full Code Here

TOP

Related Classes of com.heroku.api.request.ps.Scale

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.