Package edu.brown.api.results

Examples of edu.brown.api.results.ResponseEntries


        int count = 0;
        for (ClientStatusThread t : m_statusThreads) {
            count += t.getResponseEntries().size();
        } // FOR
        LOG.info(String.format("Merging %d ClientResponse entries together...", count));
        ResponseEntries fullDump = new ResponseEntries();
        for (ClientStatusThread t : m_statusThreads) {
            fullDump.addAll(t.getResponseEntries());
        } // FOR
        if (fullDump.isEmpty()) {
            LOG.warn("No ClientResponse results were returned!");
            return;
        }
       
        // Convert to a VoltTable and then write out to a CSV file
        LOG.info(String.format("Writing %d ClientResponse entries to '%s'", fullDump.size(), outputPath));
        String txnNames[] = currentResults.getTransactionNames();
        FileWriter out = new FileWriter(outputPath);
        VoltTable vt = ResponseEntries.toVoltTable(fullDump, txnNames);
        VoltTableUtil.csv(out, vt, true);
        out.close();
        if (debug.val)
            LOG.debug(String.format("Wrote %d response entries information to '%s'",
                      fullDump.size(), outputPath));
    }
View Full Code Here


        m_countDisplayNames = getTransactionDisplayNames();
        if (m_countDisplayNames != null) {
            Map<Integer, String> debugLabels = new TreeMap<Integer, String>();
           
            m_enableResponseEntries = (m_hstoreConf.client.output_responses != null);
            m_responseEntries = new ResponseEntries();
           
            for (int i = 0; i < m_countDisplayNames.length; i++) {
                m_txnStats.transactions.put(i, 0);
                m_txnStats.dtxns.put(i, 0);
                m_txnStats.specexecs.put(i, 0);
View Full Code Here

        this.m_txnStats.clear(false);
        this.printControlMessage(m_controlState, copy.toJSONString());
    }
   
    protected void answerDumpTxns() {
        ResponseEntries copy = new ResponseEntries(this.m_responseEntries);
        this.m_responseEntries.clear();
        this.printControlMessage(ControlState.DUMPING, copy.toJSONString());
    }
View Full Code Here

                }
                // ----------------------------------------------------------------------------
                // DUMPING
                // ----------------------------------------------------------------------------
                case DUMPING: {
                    ResponseEntries newEntries = new ResponseEntries();
                    String json_line = getPayload(control_line, parts);
                    JSONObject json_object;
                    if (debug.val) LOG.debug("Processing response dump");
                    try {
                        json_object = new JSONObject(json_line);
                        newEntries.fromJSON(json_object, catalog_db);
                    } catch (JSONException ex) {
                        LOG.error("Invalid response:\n" + json_line);
                        throw new RuntimeException(ex);
                    }
                    this.responseEntries.addAll(newEntries);
View Full Code Here

TOP

Related Classes of edu.brown.api.results.ResponseEntries

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.