ports.add(Integer.parseInt(dataPublisherConfig.getMonitoringServerSecurePort()));
// wait till monitoring server ports are active
CartridgeAgentUtils.waitUntilPortsActive(dataPublisherConfig.getMonitoringServerIp(), ports);
if(!CartridgeAgentUtils.checkPortsActive(dataPublisherConfig.getMonitoringServerIp(), ports)) {
throw new DataPublisherException("Monitoring server not active, data publishing is aborted");
}
// stream definition identifier = {log.publisher.<cluster id>}
try {
streamDefinition = new StreamDefinition(Constants.LOG_PUBLISHER_STREAM_PREFIX + CartridgeAgentConfiguration.getInstance().getClusterId(),