Add doc and end of line

This commit is contained in:
Ankit Gupta
2014-06-22 13:27:22 -07:00
parent 143ee5a1c1
commit e0ebea6cc2
7 changed files with 8 additions and 10 deletions

View File

@@ -93,10 +93,7 @@ public class RocksDB extends RocksObject {
// This allows to use the rocksjni default Options instead of
// the c++ one.
Options options = new Options();
db.open(options.nativeHandle_, options.cacheSize_, path);
db.transferCppRawPointersOwnershipFrom(options);
options.dispose();
return db;
return open(options, path);
}
/**

View File

@@ -57,7 +57,7 @@ public class StatisticsCollector {
public void run() {
while (_isRunning) {
try {
// Collect ticker data
// Collect ticker data
for(TickerType ticker : TickerType.values()) {
long tickerValue = _statistics.getTickerCount(ticker);
_statsCallback.tickerCallback(ticker, tickerValue);
@@ -83,4 +83,4 @@ public class StatisticsCollector {
}
};
}
}
}

View File

@@ -24,4 +24,4 @@ public interface StatisticsCollectorCallback {
* @param histData Histogram data.
*/
void histogramCallback(HistogramType histType, HistogramData histData);
}
}

View File

@@ -36,4 +36,4 @@ public class StatisticsCollectorTest {
System.out.println("Stats collector test passed.!");
}
}
}

View File

@@ -19,4 +19,4 @@ public class StatsCallbackMock implements StatisticsCollectorCallback {
HistogramData histData) {
histCallbackCount++;
}
}
}