use of org.graylog.plugins.sidecar.system.SidecarConfiguration in project graylog2-server by Graylog2.
the class V20180601151500_AddDefaultConfiguration method upgrade.
@Override
public void upgrade() {
final SidecarConfiguration sidecarConfiguration = clusterConfigService.get(SidecarConfiguration.class);
if (sidecarConfiguration == null) {
final SidecarConfiguration config = SidecarConfiguration.defaultConfiguration();
LOG.info("Creating Sidecar cluster config: {}", config);
clusterConfigService.write(config);
}
}
Aggregations