Skip to content

Commit

Permalink
Fixes the heartbeat of the UdpPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
acaproni committed Jun 18, 2018
2 parents 4b3af21 + 5f60e8e commit f5cb7f0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,18 @@ public static void main(String[] args) {
printUsage(options);
System.exit(-5);
}

String kafkaBroker = pluginConfig.getSinkServer()+":"+pluginConfig.getSinkPort();

logger.info("Kafka server {}:{}", pluginConfig.getSinkServer(),pluginConfig.getSinkPort());
logger.info("Kafka broker {}", kafkaBroker);
MonitorPointSender mpSender = new KafkaPublisher(
pluginConfig.getId(),
pluginConfig.getMonitoredSystemId(),
pluginConfig.getSinkServer(),
pluginConfig.getSinkPort(),
Plugin.getScheduledExecutorService());

HbProducer hbProducer = new HbKafkaProducer(pluginConfig.getId()+"HBSender", new HbJsonSerializer());
HbProducer hbProducer = new HbKafkaProducer(pluginConfig.getId()+"HBSender", kafkaBroker, new HbJsonSerializer());

UdpPlugin udpPlugin = null;
try {
Expand Down

0 comments on commit f5cb7f0

Please sign in to comment.