MCPcopy
hub / github.com/uber/aresdb / NewBatchStatsReporter

Function NewBatchStatsReporter

memstore/batchstats.go:32–39  ·  view source on GitHub ↗

NewBatchStatsReporter create a new BatchStatsReporter instance

(intervalInSeconds int, memStore MemStore, shardOwner topology.ShardOwner)

Source from the content-addressed store, hash-verified

30
31// NewBatchStatsReporter create a new BatchStatsReporter instance
32func NewBatchStatsReporter(intervalInSeconds int, memStore MemStore, shardOwner topology.ShardOwner) *BatchStatsReporter {
33 return &BatchStatsReporter{
34 intervalInSeconds: intervalInSeconds,
35 memStore: memStore,
36 shardOwner: shardOwner,
37 stopChan: make(chan struct{}),
38 }
39}
40
41// Run is a ticker function to run report periodically
42func (batchStats *BatchStatsReporter) Run() {

Callers 3

startFunction · 0.92
ServeMethod · 0.92
batchstats_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected