Package com.basho.riak.client.raw.query

Examples of com.basho.riak.client.raw.query.MapReduceTimeoutException


        try {
            MapReduceResponseSource resp = client.mapReduce(spec.getJSON(), meta);
            return convert(resp);
        } catch (RiakError e) {
            if (JSONErrorParser.isTimeoutException(e.getMessage())) {
                throw new MapReduceTimeoutException();
            } else {
                throw new IOException(e.getMessage());
            }
        }
    }
View Full Code Here


     * @throws MapReduceTimeoutException
     */
    static MapReduceResult convert(final MapReduceResponse resp) throws IOException, MapReduceTimeoutException {
        if(resp.isError()) {
            if(JSONErrorParser.isTimeoutException(resp.getBodyAsString())) {
                throw new MapReduceTimeoutException();
            } else {
                throw new IOException(resp.getBodyAsString());
            }
        }
        final MapReduceResult result = new MapReduceResult() {
View Full Code Here

        try {
        MapReduceResponseSource resp = client.mapReduce(spec.getJSON(), meta);
        return convert(resp);
        } catch (RiakError e) {
            if( JSONErrorParser.isTimeoutException(e.getMessage())) {
                throw new MapReduceTimeoutException();
            } else {
                throw new IOException(e.getMessage());
            }
        }
    }
View Full Code Here

        try {
            MapReduceResponseSource resp = client.mapReduce(spec.getJSON(), meta);
            return convert(resp);
        } catch (RiakError e) {
            if (JSONErrorParser.isTimeoutException(e.getMessage())) {
                throw new MapReduceTimeoutException();
            } else {
                throw new IOException(e.getMessage());
            }
        }
    }
View Full Code Here

     * @throws MapReduceTimeoutException
     */
    static MapReduceResult convert(final MapReduceResponse resp) throws IOException, MapReduceTimeoutException {
        if(resp.isError()) {
            if(JSONErrorParser.isTimeoutException(resp.getBodyAsString())) {
                throw new MapReduceTimeoutException();
            } else {
                throw new IOException(resp.getBodyAsString());
            }
        }
        final MapReduceResult result = new MapReduceResult() {
View Full Code Here

        RiakException ex = null;
        try {
            Map<String, String> exceptionData = parseError(json);

            if (isTimeoutError(exceptionData)) {
                ex = new MapReduceTimeoutException();
            } else {
                ex = new RiakException(json);
            }
        } catch (IOException e) {
            ex = new RiakException(new StringBuilder().append(json).append(PARSE_ERROR).toString(), e);
View Full Code Here

TOP

Related Classes of com.basho.riak.client.raw.query.MapReduceTimeoutException

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.