Package co.adhoclabs.ironcushion

Examples of co.adhoclabs.ironcushion.BenchmarkException


    document.put("_rev", json.get("rev"));
  }
 
  private JSONObject getJsonReply(HttpResponse response) throws BenchmarkException {
    if (response.isChunked()) {
      throw new BenchmarkException("CRUD response is chunked");
    }
    ChannelBuffer content = response.getContent();
    connectionStatistics.receivedJsonBytes(content.readableBytes());
    String json = content.toString(CharsetUtil.UTF_8);
    try {
      return (JSONObject) new JSONParser().parse(json);
    } catch (ParseException e) {
      throw new BenchmarkException(e);
    }
  }
View Full Code Here

TOP

Related Classes of co.adhoclabs.ironcushion.BenchmarkException

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.