@Override public Serde<MetricsSnapshot> getSerde(String name, Config config) { return new MetricsSnapshotSerdeV2(); } }
@Override public Serde<MetricsSnapshot> getSerde(String name, Config config) { return new MetricsSnapshotSerdeV2(); } }
@Override public Serde<MetricsSnapshot> getSerde(String name, Config config) { return new MetricsSnapshotSerdeV2(); } }
@Override public Serde<MetricsSnapshot> getSerde(String name, Config config) { return new MetricsSnapshotSerdeV2(); } }
@Override public Serde<MetricsSnapshot> getSerde(String name, Config config) { return new MetricsSnapshotSerdeV2(); } }
private MetricsSnapshotReporter getMetricsSnapshotReporter(String blacklist) { return new MetricsSnapshotReporter(new InMemorySystemProducer("test system", null), new SystemStream("test system", "test stream"), 60000, "test job", "test jobID", "samza-container-0", "test version", "test samza version", "test host", new MetricsSnapshotSerdeV2(), new Some<>(blacklist), new AbstractFunction0<Object>() { @Override public Object apply() { return System.currentTimeMillis(); } }); } }
MetricsSnapshotSerdeV2 metricsSnapshotSerde = new MetricsSnapshotSerdeV2(); byte[] serializedBytes = metricsSnapshotSerde.toBytes(metricsSnapshot);