public class GridLocalConfigManager extends Object
| Constructor and Description |
|---|
GridLocalConfigManager(GridCacheProcessor cacheProcessor,
GridKernalContext kernalCtx) |
public GridLocalConfigManager(GridCacheProcessor cacheProcessor, GridKernalContext kernalCtx) throws IgniteCheckedException
cacheProcessor - Cache processor.kernalCtx - Kernal context.IgniteCheckedExceptionpublic void readConfigurationFiles(List<CacheConfiguration<?,?>> ccfgs, BiConsumer<CacheConfiguration<?,?>,File> ccfgCons)
ccfgs - List of cache configurations to process.ccfgCons - Consumer which accepts found configurations files.public Map<String,StoredCacheData> readCacheConfigurations() throws IgniteCheckedException
IgniteCheckedException - If failed.public StoredCacheData readCacheData(File conf) throws IgniteCheckedException
conf - File with stored cache data.IgniteCheckedException - If failed.public static StoredCacheData readCacheData(File conf, @Nullable @Nullable Marshaller marshaller, @Nullable @Nullable IgniteConfiguration cfg) throws IgniteCheckedException
conf - File with stored cache data.marshaller - Marshaller.cfg - Ignite configuration.IgniteCheckedException - If failed.public static Map<File,StoredCacheData> readCachesData(File dbDir, @Nullable @Nullable Marshaller marshaller, @Nullable @Nullable IgniteConfiguration cfg)
dbDir - Root directory for all cache datas.marshaller - Marshaller.cfg - Ignite configuration.public void writeCacheData(StoredCacheData cacheData, File conf) throws IgniteCheckedException
conf - File to store cache data.cacheData - Cache data file.IgniteCheckedException - If failed.public void saveCacheConfiguration(StoredCacheData cacheData, boolean overwrite) throws IgniteCheckedException
cacheData - Stored cache data.overwrite - Overwrite existing.IgniteCheckedExceptionpublic void removeCacheData(StoredCacheData cacheData) throws IgniteCheckedException
cacheData - Stored cache data.IgniteCheckedExceptionpublic Collection<String> stopSequence()
public Set<String> localCachesOnStart()
public CacheJoinNodeDiscoveryData restoreCacheConfigurations() throws IgniteCheckedException
IgniteCheckedException - If failed.public void addConfigurationChangeListener(BiConsumer<String,File> lsnr)
lsnr - Instance of listener to add.public void removeConfigurationChangeListener(BiConsumer<String,File> lsnr)
lsnr - Instance of listener to remove.public void removeCacheGroupConfigurationData(CacheGroupContext ctx) throws IgniteCheckedException
ctx - Cache group context.IgniteCheckedException - If fails.public void readCacheConfigurations(File dir, Map<String,StoredCacheData> ccfgs) throws IgniteCheckedException
dir - Cache (group) directory.ccfgs - Cache configurations.IgniteCheckedException - If failed.public File cacheConfigurationFile(CacheConfiguration<?,?> ccfg)
ccfg - Cache configuration.CacheConfiguration.getGroupName() value.public File cacheWorkDir(CacheConfiguration<?,?> ccfg)
ccfg - Cache configuration.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023