Package com.heroku.api

Examples of com.heroku.api.Proc


    }

    @Override
    public RunResponse getResponse(byte[] bytes, int status) {
        if (status == 200) {
            Proc parsedProc = Json.parse(bytes, Proc.class);
            return new RunResponse(parsedProc);
        } else {
            throw new RequestFailedException("Run Request Failed,", status, bytes);
        }
    }
View Full Code Here


    enum Columns { Pid, Process, Type, Command, AppName, Slug, Action, State, PrettyState, TransitionedAt, Elapsed, Attached, RendezvousUrl}

    @Override
    public Object getValueAt(int row, int column) {
        final Proc process = getProcess(row);
        switch (columnFor(column)) {
            case Pid:
                return process.getUpid();
            case Process:
                return process.getProcess();
            case Type:
                return process.getType();
            case Command:
                return process.getCommand();
            case AppName:
                return process.getAppName();
            case Slug:
                return process.getSlug();
            case Action:
                return process.getAction();
            case State:
                return process.getState();
            case PrettyState:
                return process.getPrettyState();
            case TransitionedAt:
                return process.getTransitionedAt();
            case Elapsed:
                return process.getElapsed();
            case Attached:
                return process.isAttached();
            case RendezvousUrl:
                return process.getRendezvousUrl();
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of com.heroku.api.Proc

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.