use of com.hazelcast.internal.dynamicconfig.ConfigurationService in project hazelcast by hazelcast.
the class SetLicenseOperation method run.
@Override
public void run() throws Exception {
DefaultNodeExtension nodeExtension = (DefaultNodeExtension) ((NodeEngineImpl) getNodeEngine()).getNode().getNodeExtension();
nodeExtension.setLicenseKey(licenseKey);
LicenseKey licenseKeyObject = new LicenseKey(licenseKey);
ConfigurationService configurationService = getNodeEngine().getService(ClusterWideConfigurationService.SERVICE_NAME);
configurationService.persist(licenseKeyObject);
}
Aggregations