public class CachesRegistry extends Object
| Constructor and Description |
|---|
CachesRegistry(GridCacheSharedContext cctx) |
| Modifier and Type | Method and Description |
|---|---|
IgniteInternalFuture<?> |
addUnregistered(Collection<DynamicCacheDescriptor> descs)
Adds cache and caches groups that is not registered yet to registry.
|
Map<Integer,DynamicCacheDescriptor> |
allCaches() |
Map<Integer,CacheGroupDescriptor> |
allGroups() |
@Nullable DynamicCacheDescriptor |
cache(int cacheId) |
CacheGroupDescriptor |
group(int grpId) |
IgniteInternalFuture<?> |
init(Map<Integer,CacheGroupDescriptor> groupDescriptors,
Map<String,DynamicCacheDescriptor> cacheDescriptors)
Removes currently registered cache groups and caches.
|
void |
unregisterAll() |
@Nullable DynamicCacheDescriptor |
unregisterCache(int cacheId)
Removes cache from registry.
|
CacheGroupDescriptor |
unregisterGroup(int grpId)
Removes cache group from registry.
|
IgniteInternalFuture<?> |
update(ExchangeActions exchActions)
Adds caches and cache groups to start from
exchActions. |
public CachesRegistry(GridCacheSharedContext cctx)
cctx - Cache shared context.public IgniteInternalFuture<?> init(Map<Integer,CacheGroupDescriptor> groupDescriptors, Map<String,DynamicCacheDescriptor> cacheDescriptors)
groupDescriptors - Registered groups.cacheDescriptors - Registered caches.public CacheGroupDescriptor unregisterGroup(int grpId)
grpId - Group id.null if group doesn't exist.public Map<Integer,CacheGroupDescriptor> allGroups()
public CacheGroupDescriptor group(int grpId)
grpId - Group ID.@Nullable public @Nullable DynamicCacheDescriptor cache(int cacheId)
cacheId - Cache ID.@Nullable public @Nullable DynamicCacheDescriptor unregisterCache(int cacheId)
cacheId - Cache id.null if cache doesn't exist.public Map<Integer,DynamicCacheDescriptor> allCaches()
public IgniteInternalFuture<?> addUnregistered(Collection<DynamicCacheDescriptor> descs)
descs - Cache and cache group descriptors.public IgniteInternalFuture<?> update(ExchangeActions exchActions)
exchActions.
Removes caches and caches groups to stop from exchActions.exchActions - Exchange actions.public void unregisterAll()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023