Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
brigharder committed Apr 15, 2014
1 parent cfe1085 commit 3863378
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/benchmarks/edu/brown/benchmark/tpceb/TPCEClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ else if(tradeOrderResult[0].fetchRow(0) == null){
// tradeRequest.trade_qty = (int) tradeOrderResult[0].fetchRow(0).get("trade_qty", VoltType.INTEGER);
System.out.println("trying to get eAction");
tradeRequest.eActionTemp = (int) tradeOrderResult[0].fetchRow(0).getLong("eAction");
System.out.println("eAction val:" + tradeRequest.eActionTemp );
// System.out.println("eAction val:" + tradeRequest.eActionTemp );
// tradeRequest.eActionTemp = (int) tradeOrderResult[0].fetchRow(0).get("eAction", VoltType.INTEGER);
// tradeRequest.eActionTemp = (int) tradeOrderResult[0].fetchRow(0).getDouble("eAction");
//System.out.println("eActionTemp " + tradeOrderResult[0].fetchRow(0).getDouble("eAction"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ public void generateTradeOrderInput(TTradeOrderTxnInput inputStructure, int iTra
long secFlatFileIndex;
// String[] flTaxId;
TradeType eTradeType;

inputStructure.setTradeID(currentTradeID.getAndIncrement());
System.out.println("TradeID " + inputStructure.getTradeID());
/***********ADDDED**/
//inputStructure.setSendToMarket(pSendToMarket);
/*******************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public MarketExchangeCallback(TTradeResultTxnInput trTxnInput, TMarketFeedTxnInp

public boolean TradeResult( TTradeResultTxnInput pTxnInput ) {
System.out.println("STATUS:" + pTxnInput.st_completed_id);
System.out.println("IN MARKET EXCHANGE CALLBACK" + pTxnInput.trade_id);
m_TradeResultTxnInput.trade_id = pTxnInput.trade_id;
m_TradeResultTxnInput.trade_price = pTxnInput.trade_price;
m_TradeResultTxnInput.st_completed_id = pTxnInput.st_completed_id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,11 @@ public VoltTable[] run(double requested_price, long acct_id, long is_lifo, long
//ret_values.addRow(buy_value, sell_value, tax_amount, trade_id, eAction);
// System.out.println("Requested Price: " + requested_price);
// System.out.println("Symbol: " + symbol);
// System.out.println("Trade_ID: " + trade_id);
System.out.println("Trade_ID: " + trade_id);
System.out.println("Trade_QTY:" + trade_qty);
// System.out.println("Trade_type_ID:" + trade_type_id);
System.out.println("eAction:" + eAction);

ret_values.addRow(requested_price, symbol, trade_id, (int) trade_qty, trade_type_id, eAction);
return new VoltTable[] {ret_values};

Expand Down

0 comments on commit 3863378

Please sign in to comment.