Search in sources :

Example 1 with PubSubWebSocketMetricTransport

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);
}
Also used : PubSubWebSocketMetricTransport(com.datatorrent.stram.PubSubWebSocketMetricTransport) AutoMetricBuiltInTransport(com.datatorrent.common.metric.AutoMetricBuiltInTransport)

Aggregations

AutoMetricBuiltInTransport (com.datatorrent.common.metric.AutoMetricBuiltInTransport)1 PubSubWebSocketMetricTransport (com.datatorrent.stram.PubSubWebSocketMetricTransport)1