Class NoDefaultsStorageConfiguration

java.lang.Object
org.apache.ignite3.internal.configuration.storage.LocalFileConfigurationStorage
org.apache.ignite.migrationtools.config.storage.NoDefaultsStorageConfiguration
All Implemented Interfaces:
org.apache.ignite3.internal.close.ManuallyCloseable, org.apache.ignite3.internal.configuration.storage.ConfigurationStorage

public class NoDefaultsStorageConfiguration extends org.apache.ignite3.internal.configuration.storage.LocalFileConfigurationStorage
Patched version of the LocalFileConfiguration Storage that does not store defaults. This class should be considered experimental. The best solution would be to skip the usage of the Configuration registry entirely because we do not use it's features.
  • Constructor Details

    • NoDefaultsStorageConfiguration

      public NoDefaultsStorageConfiguration(Path configPath, org.apache.ignite3.internal.configuration.ConfigurationTreeGenerator generator, org.apache.ignite3.configuration.ConfigurationModule module)
  • Method Details

    • readDataOnRecovery

      public CompletableFuture<org.apache.ignite3.internal.configuration.storage.Data> readDataOnRecovery()
      Specified by:
      readDataOnRecovery in interface org.apache.ignite3.internal.configuration.storage.ConfigurationStorage
      Overrides:
      readDataOnRecovery in class org.apache.ignite3.internal.configuration.storage.LocalFileConfigurationStorage
    • registerConfigurationListener

      public void registerConfigurationListener(org.apache.ignite3.internal.configuration.storage.ConfigurationStorageListener lsnr)
      Specified by:
      registerConfigurationListener in interface org.apache.ignite3.internal.configuration.storage.ConfigurationStorage
      Overrides:
      registerConfigurationListener in class org.apache.ignite3.internal.configuration.storage.LocalFileConfigurationStorage
    • write

      public CompletableFuture<Boolean> write(Map<String,? extends Serializable> newValues, long ver)
      Specified by:
      write in interface org.apache.ignite3.internal.configuration.storage.ConfigurationStorage
      Overrides:
      write in class org.apache.ignite3.internal.configuration.storage.LocalFileConfigurationStorage