use of wavefront.report.ReportPoint in project java by wavefrontHQ.
the class AccumulationTaskTest method setUp.
@Before
public void setUp() throws Exception {
AtomicInteger timeMillis = new AtomicInteger(0);
in = new InMemoryObjectQueue<>();
out = new ConcurrentHashMap<>();
cache = new AccumulationCache(out, 0, timeMillis::get);
badPointsOut = Lists.newArrayList();
PointHandler pointHandler = new PointHandler() {
@Override
public void reportPoint(ReportPoint point, String debugLine) {
throw new UnsupportedOperationException();
}
@Override
public void reportPoints(List<ReportPoint> points) {
throw new UnsupportedOperationException();
}
@Override
public void handleBlockedPoint(String pointLine) {
badPointsOut.add(pointLine);
}
};
eventSubject = new AccumulationTask(in, cache, new GraphiteDecoder("unknown", ImmutableList.of()), pointHandler, Validation.Level.NUMERIC_ONLY, TTL, MINUTE, COMPRESSION);
histoSubject = new AccumulationTask(in, cache, new HistogramDecoder(), pointHandler, Validation.Level.NUMERIC_ONLY, TTL, MINUTE, COMPRESSION);
}
Aggregations