use of com.datatorrent.stram.PubSubWebSocketMetricTransport in project apex-core by apache.
the class AppDataPushAgent method init.
public void init() {
metricsTransport = dnmgr.getLogicalPlan().getValue(DAGContext.METRICS_TRANSPORT);
if (metricsTransport instanceof AutoMetricBuiltInTransport) {
AutoMetricBuiltInTransport transport = (AutoMetricBuiltInTransport) metricsTransport;
metricsTransport = new PubSubWebSocketMetricTransport(dnmgr.getWsClient(), transport.getTopic(), transport.getSchemaResendInterval());
}
LOG.info("Metrics Transport set up for {}", metricsTransport);
}
Aggregations