Search in sources :

Example 1 with SidecarConfiguration

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);
    }
}
Also used : SidecarConfiguration(org.graylog.plugins.sidecar.system.SidecarConfiguration)

Aggregations

SidecarConfiguration (org.graylog.plugins.sidecar.system.SidecarConfiguration)1