Package com.heroku.api.request.ps

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


     * List of processes running for an app.
     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @return
     */
    public List<Proc> listProcesses(String appName) {
        return connection.execute(new ProcessList(appName), apiKey);
    }
View Full Code Here


        Proc proc = null;
        try {
            final RunResponse runResponse = connection.execute(new Run(app.getName(), "sleep 60", false), apiKey);
            proc = runResponse.getProc();

            List<Proc> response = connection.execute(new ProcessList(app.getName()), apiKey);
            assertEquals(response.size(), 1);
            assertEquals(response.get(0).getProcess(), proc.getProcess());
            assertEquals(response.get(0).getCommand(), proc.getCommand());
        } finally {
            if (proc != null) {
View Full Code Here

TOP

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

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.