Examples of HGrid


Examples of org.haystack.HGrid

        if (refresh)
            b.meta().add("refresh");
        b.addCol("empty");

        // make request
        HGrid req = b.toGrid();
        try {
            return call("watchPoll", req);
        }
        catch (CallErrException e) {
            // any server side error is considered close
View Full Code Here

Examples of org.haystack.HGrid

        b.addCol("val");
        b.addCol("duration");

        b.addRow(new HVal[] { id, HNum.make(level), HStr.make(who), val, dur });

        HGrid req = b.toGrid();
        HGrid res = call("pointWrite", req);
        return res;
    }
View Full Code Here

Examples of org.haystack.HGrid

    public HGrid pointWriteArray(HRef id) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addRow(new HVal[] { id });

        HGrid req = b.toGrid();
        HGrid res = call("pointWrite", req);
        return res;
    }
View Full Code Here

Examples of org.haystack.HGrid

    public HGrid hisRead(HRef id, Object range) {
        HGridBuilder b = new HGridBuilder();
        b.addCol("id");
        b.addCol("range");
        b.addRow(new HVal[] { id, HStr.make(range.toString()) });
        HGrid req = b.toGrid();
        HGrid res = call("hisRead", req);
        return res;
    }
View Full Code Here

Examples of org.haystack.HGrid

     * inserted then they must be gracefully merged.
     */
    @Override
    public void hisWrite(HRef id, HHisItem[] items) {
        HDict meta = new HDictBuilder().add("id", id).toDict();
        HGrid req = HGridBuilder.hisItemsToGrid(meta, items);
        call("hisWrite", req);
    }
View Full Code Here

Examples of org.haystack.HGrid

    /**
     * Invoke a remote action using the "invokeAction" REST operation.
     */
    public HGrid invokeAction(HRef id, String action, HDict args) {
        HDict meta = new HDictBuilder().add("id", id).add("action", action).toDict();
        HGrid req = HGridBuilder.dictsToGrid(meta, new HDict[] { args });
        return call("invokeAction", req);
    }
View Full Code Here

Examples of org.haystack.HGrid

     * Raise CallNetworkException if there is a communication I/O error.
     * Raise CallErrException if there is a server side error and an error
     * grid is returned.
     */
    public HGrid call(String op, HGrid req) {
        HGrid res = postGrid(op, req);
        if (res.isErr())
            throw new CallErrException(res);
        return res;
    }
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.