use of com.tdunning.math.stats.AgentDigest in project java by wavefrontHQ.
the class AccumulationCacheTest method setup.
@Before
public void setup() {
backingStore = new ConcurrentHashMap<>();
tickerTime = new AtomicLong(0L);
AccumulationCache ac = new AccumulationCache(backingStore, CAPACITY, tickerTime::get);
resolveTask = ac.getResolveTask();
cache = ac.getCache();
digestA = new AgentDigest(COMPRESSION, 100L);
digestB = new AgentDigest(COMPRESSION, 1000L);
digestC = new AgentDigest(COMPRESSION, 10000L);
}
use of com.tdunning.math.stats.AgentDigest in project java by wavefrontHQ.
the class TapeDispatcherTest method setup.
@Before
public void setup() {
in = new ConcurrentHashMap<>();
out = new InMemoryObjectQueue<>();
digestA = new AgentDigest(COMPRESSION, 100L);
digestB = new AgentDigest(COMPRESSION, 1000L);
timeMillis = new AtomicLong(0L);
subject = new TapeDispatcher(in, out, timeMillis::get);
}
Aggregations