public class GridCacheProcessor extends GridProcessorAdapter implements MetastorageLifecycleListener
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridCacheProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheConfiguration(CacheConfiguration cacheCfg) |
IgniteCacheProxyImpl<?,?> |
addjCacheProxy(String name,
IgniteCacheProxyImpl<?,?> proxy) |
void |
awaitStarted() |
void |
blockGateways()
Blocks all available gateways
|
<K,V> IgniteInternalCache<K,V> |
cache(String name) |
CacheConfiguration |
cacheConfiguration(String name)
Get configuration for the given cache.
|
DynamicCacheDescriptor |
cacheDescriptor(int cacheId) |
DynamicCacheDescriptor |
cacheDescriptor(String name)
Get registered cache descriptor.
|
Map<String,DynamicCacheDescriptor> |
cacheDescriptors() |
CacheGroupContext |
cacheGroup(int grpId) |
Map<Integer,CacheGroupDescriptor> |
cacheGroupDescriptors() |
Collection<CacheGroupContext> |
cacheGroups() |
CacheMode |
cacheMode(String cacheName)
Gets cache mode.
|
Collection<String> |
cacheNames()
Gets a collection of currently started caches.
|
Collection<IgniteInternalCache<?,?>> |
caches() |
CacheType |
cacheType(String cacheName) |
IgniteInternalFuture<Boolean> |
changeWalMode(Collection<String> cacheNames,
boolean enabled)
Change WAL mode.
|
void |
checkEmptyTransactions()
Method checks that current thread does not have active transactions.
|
void |
cleanupCachesDirectories()
Remove all persistent files for all registered caches.
|
void |
clearStatistics(Collection<String> cacheNames)
Clear statistics globally for the caches
|
<T> T |
clone(T obj) |
void |
collectGridNodeData(DiscoveryDataBag dataBag)
Collects discovery data on nodes already in grid on receiving
TcpDiscoveryNodeAddedMessage. |
void |
collectJoiningNodeData(DiscoveryDataBag dataBag)
Collects discovery data on joining node before sending
TcpDiscoveryJoinRequestMessage request. |
void |
completeProxyInitialize(String name) |
void |
completeProxyRestart(Map<String,DynamicCacheChangeRequest> reqs,
AffinityTopologyVersion initVer,
AffinityTopologyVersion doneVer) |
<K,V> GridCacheSharedContext<K,V> |
context() |
IgniteInternalFuture<?> |
createFromTemplate(String cacheName)
Dynamically starts cache using template configuration.
|
void |
createMissingQueryCaches()
Starts client caches that do not exist yet.
|
DynamicCacheChangeRequest |
createStopRequest(String cacheName,
boolean restart,
boolean destroy)
Prepares cache stop request.
|
GridComponent.DiscoveryDataExchangeType |
discoveryDataType()
Gets unique component type to distinguish components providing discovery data.
|
IgniteInternalFuture<?> |
dynamicChangeCaches(List<DynamicCacheChangeRequest> reqs)
Starts cache stop request as cache change batch.
|
IgniteInternalFuture<Boolean> |
dynamicDestroyCache(String cacheName,
boolean sql,
boolean checkThreadTx,
boolean restart) |
IgniteInternalFuture<?> |
dynamicDestroyCaches(Collection<String> cacheNames,
boolean checkThreadTx,
boolean restart) |
IgniteInternalFuture<?> |
dynamicDestroyCaches(Collection<String> cacheNames,
boolean checkThreadTx,
boolean restart,
boolean destroy) |
IgniteInternalFuture<Boolean> |
dynamicStartCache(CacheConfiguration ccfg,
String cacheName,
NearCacheConfiguration nearCfg,
boolean failIfExists,
boolean failIfNotStarted,
boolean checkThreadTx)
Dynamically starts cache.
|
IgniteInternalFuture<Boolean> |
dynamicStartCache(CacheConfiguration ccfg,
String cacheName,
NearCacheConfiguration nearCfg,
CacheType cacheType,
boolean sql,
boolean failIfExists,
boolean failIfNotStarted,
boolean checkThreadTx)
Dynamically starts cache.
|
IgniteInternalFuture<Boolean> |
dynamicStartCaches(Collection<CacheConfiguration> ccfgList,
boolean failIfExists,
boolean checkThreadTx,
boolean disabledAfterStart)
Dynamically starts multiple caches.
|
IgniteInternalFuture<Boolean> |
dynamicStartCachesByStoredConf(Collection<StoredCacheData> storedCacheDataList,
boolean failIfExists,
boolean checkThreadTx,
boolean disabledAfterStart)
Dynamically starts multiple caches.
|
IgniteInternalFuture<Boolean> |
dynamicStartSqlCache(CacheConfiguration ccfg)
Dynamically starts cache as a result of SQL
CREATE TABLE command. |
void |
enableRebalance()
Start cache rebalance.
|
void |
enableStatistics(Collection<String> cacheNames,
boolean enabled)
Enable/disable statistics globally for the caches
|
CachePartitionExchangeWorkerTask |
exchangeTaskForCustomDiscoveryMessage(DiscoveryCustomMessage msg)
Create exchange worker task for custom discovery message.
|
CacheConfiguration |
getConfigFromTemplate(String cacheName) |
IgniteInternalFuture<?> |
getOrCreateFromTemplate(String cacheName,
boolean checkThreadTx)
Dynamically starts cache using template configuration.
|
IgniteInternalFuture<?> |
getOrCreateFromTemplate(String cacheName,
String templateName,
CacheConfigurationOverride cfgOverride,
boolean checkThreadTx)
Dynamically starts cache using template configuration.
|
<K,V> IgniteInternalCache<K,V> |
getOrStartCache(String name) |
<K,V> IgniteInternalCache<K,V> |
getOrStartCache(String name,
CacheConfiguration ccfg) |
IgniteCacheProxy<?,?> |
getOrStartPublicCache(boolean start,
boolean inclLoc)
Gets public cache that can be used for query execution.
|
<K,V> GridCacheAdapter<K,V> |
internalCache(String name) |
Collection<GridCacheAdapter<?,?>> |
internalCaches() |
<K,V> IgniteCacheProxy<K,V> |
jcache(String name) |
IgniteCacheProxyImpl<?,?> |
jcacheProxy(String name,
boolean awaitInit) |
Collection<IgniteCacheProxy<?,?>> |
jcaches() |
long |
lastDataVersion() |
LocalJoinCachesContext |
localJoinCachesContext() |
void |
onCacheStatisticsModeChange(CacheStatisticsModeChangeMessage msg)
Cache statistics flag change message received.
|
boolean |
onCustomEvent(DiscoveryCustomMessage msg,
AffinityTopologyVersion topVer,
ClusterNode node)
Callback invoked from discovery thread when discovery custom message is received.
|
void |
onDisconnected(IgniteFuture<?> reconnectFut)
Client disconnected callback.
|
void |
onDiscoveryEvent(int type,
DiscoveryCustomMessage customMsg,
ClusterNode node,
AffinityTopologyVersion topVer,
DiscoveryDataClusterState state) |
void |
onExchangeDone(AffinityTopologyVersion cacheStartVer,
ExchangeActions exchActions,
Throwable err)
Callback invoked when first exchange future for dynamic cache is completed.
|
void |
onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
Receives discovery data object from remote nodes (called
on new node during discovery process).
|
void |
onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
Method is called on nodes that are already in grid (not on joining node).
|
void |
onKernalStart(boolean active)
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
onKernalStopCaches(boolean cancel) |
void |
onReadyForRead(ReadOnlyMetastorage metastorage)
Is called when metastorage is made ready for read-only operations very early on node startup phase.
|
void |
onReadyForReadWrite(ReadWriteMetastorage metastorage)
Fully functional metastore capable of performing reading and writing operations.
|
IgniteInternalFuture<?> |
onReconnected(boolean clusterRestarted)
Client reconnected callback.
|
void |
onStateChangeFinish(ChangeGlobalStateFinishMessage msg) |
ExchangeActions |
onStateChangeRequest(ChangeGlobalStateMessage msg,
AffinityTopologyVersion topVer,
DiscoveryDataClusterState curState) |
void |
onTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
Callback invoked from discovery thread when discovery custom message is received.
|
void |
onUndeployed(ClassLoader ldr)
Callback invoked by deployment manager for whenever a class loader gets undeployed.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
void |
processStatisticsModeChange(CacheStatisticsModeChangeMessage msg)
Cache statistics flag change task processed by exchange worker.
|
void |
processTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
The task for changing transaction timeout on partition map exchange processed by exchange worker.
|
Collection<String> |
publicAndDsCacheNames()
Gets a collection of currently started public cache names.
|
<K,V> IgniteInternalCache<K,V> |
publicCache(String name) |
Collection<String> |
publicCacheNames()
Gets a collection of currently started public cache names.
|
Collection<IgniteCacheProxy<?,?>> |
publicCaches() |
<K,V> IgniteCacheProxy<K,V> |
publicJCache(String cacheName) |
<K,V> IgniteCacheProxy<K,V> |
publicJCache(String cacheName,
boolean failIfNotStarted,
boolean checkThreadTx) |
void |
registrateProxyRestart(Map<String,DynamicCacheChangeRequest> reqs,
GridFutureAdapter<?> fut) |
IgniteInternalFuture<?> |
resetCacheState(Collection<String> cacheNames)
Resets cache state after the cache has been moved to recovery state.
|
void |
resetRestartingCaches()
Reset restarting caches.
|
void |
restartProxies()
Restarts proxies of caches if they was marked as restarting.
|
void |
saveCacheConfiguration(DynamicCacheDescriptor desc)
Save cache configuration to persistent store if necessary.
|
void |
setTxTimeoutOnPartitionMapExchange(long timeout)
Sets transaction timeout on partition map exchange.
|
void |
start()
Starts grid component.
|
IgniteInternalFuture<?> |
startCachesOnLocalJoin(AffinityTopologyVersion exchTopVer,
LocalJoinCachesContext locJoinCtx) |
Collection<DynamicCacheDescriptor> |
startReceivedCaches(UUID nodeId,
AffinityTopologyVersion exchTopVer)
Starts statically configured caches received from remote nodes during exchange.
|
void |
stop(boolean cancel)
Stops grid component.
|
void |
stopCaches(boolean cancel) |
boolean |
systemCache(String name) |
IgniteTransactionsEx |
transactions() |
<K,V> IgniteInternalCache<K,V> |
utilityCache()
Gets utility cache.
|
IgniteNodeValidationResult |
validateNode(ClusterNode node)
Validates that new node can join grid topology, this method is called on coordinator
node before new node joins topology.
|
IgniteNodeValidationResult |
validateNode(ClusterNode node,
DiscoveryDataBag.JoiningNodeDiscoveryData discoData) |
boolean |
walEnabled(String cacheName) |
assertParameter, toStringpublic GridCacheProcessor(GridKernalContext ctx)
ctx - Kernal context.public void enableRebalance()
public CachePartitionExchangeWorkerTask exchangeTaskForCustomDiscoveryMessage(DiscoveryCustomMessage msg)
msg - Custom discovery message.null if message doesn't require any special processing.public void onReadyForRead(ReadOnlyMetastorage metastorage) throws IgniteCheckedException
onReadyForRead in interface MetastorageLifecycleListenermetastorage - Read-only meta storage.IgniteCheckedExceptionpublic void onReadyForReadWrite(ReadWriteMetastorage metastorage) throws IgniteCheckedException
onReadyForReadWrite in interface MetastorageLifecycleListenermetastorage - Fully functional meta storage.IgniteCheckedExceptionpublic void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.@Nullable public CacheGroupContext cacheGroup(int grpId)
grpId - Group ID.public Collection<CacheGroupContext> cacheGroups()
public void onKernalStart(boolean active)
throws IgniteCheckedException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapteractive - Cluster active flag (note: should be used carefully since state can
change concurrently).IgniteCheckedException - Thrown in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public void stopCaches(boolean cancel)
cancel - Cancel.public void blockGateways()
public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void onKernalStopCaches(boolean cancel)
cancel - Cancel.public void onDisconnected(IgniteFuture<?> reconnectFut) throws IgniteCheckedException
onDisconnected in interface GridComponentonDisconnected in class GridProcessorAdapterreconnectFut - Reconnect future.IgniteCheckedException - If failed.public IgniteInternalFuture<?> onReconnected(boolean clusterRestarted) throws IgniteCheckedException
onReconnected in interface GridComponentonReconnected in class GridProcessorAdapterclusterRestarted - Cluster restarted flag.IgniteCheckedException - If failed.public void awaitStarted()
throws IgniteCheckedException
IgniteCheckedException - If failed to wait.public void registrateProxyRestart(Map<String,DynamicCacheChangeRequest> reqs, GridFutureAdapter<?> fut)
reqs - Cache requests to start.fut - Completable future.public void completeProxyRestart(Map<String,DynamicCacheChangeRequest> reqs, AffinityTopologyVersion initVer, AffinityTopologyVersion doneVer)
reqs - Cache requests to start.initVer - Init exchange version.doneVer - Finish excahnge vertison.public Collection<String> cacheNames()
public IgniteCacheProxy<?,?> getOrStartPublicCache(boolean start, boolean inclLoc) throws IgniteCheckedException
start - Start cache.inclLoc - Include local caches.null if there is no suitable cache.IgniteCheckedExceptionpublic Collection<String> publicCacheNames()
public Collection<String> publicAndDsCacheNames()
public CacheMode cacheMode(String cacheName)
cacheName - Cache name to check.@Nullable public LocalJoinCachesContext localJoinCachesContext()
public IgniteInternalFuture<?> startCachesOnLocalJoin(AffinityTopologyVersion exchTopVer, LocalJoinCachesContext locJoinCtx) throws IgniteCheckedException
exchTopVer - Local join exchange future version.locJoinCtx - Local join cache context.IgniteCheckedException - If failed.public Collection<DynamicCacheDescriptor> startReceivedCaches(UUID nodeId, AffinityTopologyVersion exchTopVer) throws IgniteCheckedException
nodeId - Joining node ID.exchTopVer - Current exchange version.IgniteCheckedException - If failed.public void restartProxies()
public void onExchangeDone(AffinityTopologyVersion cacheStartVer, @Nullable ExchangeActions exchActions, @Nullable Throwable err)
cacheStartVer - Started caches version to create proxy for.exchActions - Change requests.err - Error.@Nullable public GridComponent.DiscoveryDataExchangeType discoveryDataType()
GridComponent.collectJoiningNodeData(DiscoveryDataBag)
or GridComponent.collectGridNodeData(DiscoveryDataBag).discoveryDataType in interface GridComponentdiscoveryDataType in class GridProcessorAdapterpublic void collectJoiningNodeData(DiscoveryDataBag dataBag)
TcpDiscoveryJoinRequestMessage request.collectJoiningNodeData in interface GridComponentcollectJoiningNodeData in class GridProcessorAdapterdataBag - container object to store discovery data in.public void collectGridNodeData(DiscoveryDataBag dataBag)
TcpDiscoveryNodeAddedMessage.collectGridNodeData in interface GridComponentcollectGridNodeData in class GridProcessorAdapterdataBag - container object to store discovery data in.public void onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
onJoiningNodeDataReceived in interface GridComponentonJoiningNodeDataReceived in class GridProcessorAdapterdata - DiscoveryDataBag.JoiningNodeDiscoveryData interface to retrieve discovery data of joining node.public void onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
onGridDataReceived in interface GridComponentonGridDataReceived in class GridProcessorAdapterdata - DiscoveryDataBag.GridDiscoveryData interface to retrieve discovery data collected on remote nodes
(data common for all nodes in grid and specific for each node).@Nullable public IgniteNodeValidationResult validateNode(ClusterNode node, DiscoveryDataBag.JoiningNodeDiscoveryData discoData)
validateNode in interface GridComponentvalidateNode in class GridProcessorAdapterpublic void onStateChangeFinish(ChangeGlobalStateFinishMessage msg)
msg - Message.public ExchangeActions onStateChangeRequest(ChangeGlobalStateMessage msg, AffinityTopologyVersion topVer, DiscoveryDataClusterState curState) throws IgniteCheckedException
msg - Message.topVer - Current topology version.curState - Current cluster state.IgniteCheckedException - If configuration validation failed.public void onCacheStatisticsModeChange(CacheStatisticsModeChangeMessage msg)
msg - Message.public void processStatisticsModeChange(CacheStatisticsModeChangeMessage msg)
msg - Message.public void onTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
msg - Discovery message for changing transaction timeout on partition map exchange.public void processTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
msg - Message.public IgniteInternalFuture<?> createFromTemplate(String cacheName)
cacheName - Cache name.public IgniteInternalFuture<?> getOrCreateFromTemplate(String cacheName, boolean checkThreadTx)
cacheName - Cache name.checkThreadTx - If true checks that current thread does not have active transactions.public IgniteInternalFuture<?> getOrCreateFromTemplate(String cacheName, String templateName, CacheConfigurationOverride cfgOverride, boolean checkThreadTx)
cacheName - Cache name.templateName - Cache template name.cfgOverride - Cache config properties to override.checkThreadTx - If true checks that current thread does not have active transactions.public CacheConfiguration getConfigFromTemplate(String cacheName) throws IgniteCheckedException
cacheName - Cache name.null if no template with matching name found.IgniteCheckedException - If failed.public IgniteInternalFuture<Boolean> dynamicStartCache(@Nullable CacheConfiguration ccfg, String cacheName, @Nullable NearCacheConfiguration nearCfg, boolean failIfExists, boolean failIfNotStarted, boolean checkThreadTx)
ccfg - Cache configuration.cacheName - Cache name.nearCfg - Near cache configuration.failIfExists - Fail if exists flag.failIfNotStarted - If true fails if cache is not started.checkThreadTx - If true checks that current thread does not have active transactions.public IgniteInternalFuture<Boolean> dynamicStartSqlCache(CacheConfiguration ccfg)
CREATE TABLE command.ccfg - Cache configuration.public IgniteInternalFuture<Boolean> dynamicStartCache(@Nullable CacheConfiguration ccfg, String cacheName, @Nullable NearCacheConfiguration nearCfg, CacheType cacheType, boolean sql, boolean failIfExists, boolean failIfNotStarted, boolean checkThreadTx)
ccfg - Cache configuration.cacheName - Cache name.nearCfg - Near cache configuration.cacheType - Cache type.sql - If the cache needs to be created as the result of SQL CREATE TABLE command.failIfExists - Fail if exists flag.failIfNotStarted - If true fails if cache is not started.checkThreadTx - If true checks that current thread does not have active transactions.public IgniteInternalFuture<Boolean> dynamicStartCaches(Collection<CacheConfiguration> ccfgList, boolean failIfExists, boolean checkThreadTx, boolean disabledAfterStart)
ccfgList - Collection of cache configuration.failIfExists - Fail if exists flag.checkThreadTx - If true checks that current thread does not have active transactions.disabledAfterStart - If true, cache proxies will be only activated after restartProxies().public IgniteInternalFuture<Boolean> dynamicStartCachesByStoredConf(Collection<StoredCacheData> storedCacheDataList, boolean failIfExists, boolean checkThreadTx, boolean disabledAfterStart)
storedCacheDataList - Collection of stored cache data.failIfExists - Fail if exists flag.checkThreadTx - If true checks that current thread does not have active transactions.disabledAfterStart - If true, cache proxies will be only activated after restartProxies().public IgniteInternalFuture<Boolean> dynamicDestroyCache(String cacheName, boolean sql, boolean checkThreadTx, boolean restart)
cacheName - Cache name to destroy.sql - If the cache needs to be destroyed only if it was created as the result of SQL CREATE TABLE
command.checkThreadTx - If true checks that current thread does not have active transactions.restart - Restart flag.public IgniteInternalFuture<?> dynamicDestroyCaches(Collection<String> cacheNames, boolean checkThreadTx, boolean restart)
cacheNames - Collection of cache names to destroy.checkThreadTx - If true checks that current thread does not have active transactions.restart - Restart flag.public IgniteInternalFuture<?> dynamicDestroyCaches(Collection<String> cacheNames, boolean checkThreadTx, boolean restart, boolean destroy)
cacheNames - Collection of cache names to destroy.checkThreadTx - If true checks that current thread does not have active transactions.restart - Restart flag.destroy - Cache data destroy flag. Setting to true will cause removing all cache data@NotNull public DynamicCacheChangeRequest createStopRequest(String cacheName, boolean restart, boolean destroy)
cacheName - Cache names to destroy.restart - Restart flag.destroy - Cache data destroy flag. Setting to true will cause removing all cache data from store.@NotNull public IgniteInternalFuture<?> dynamicChangeCaches(List<DynamicCacheChangeRequest> reqs)
reqs - cache stop requests.public IgniteInternalFuture<Boolean> changeWalMode(Collection<String> cacheNames, boolean enabled)
cacheNames - Cache names.enabled - Enabled flag.public boolean walEnabled(String cacheName)
cacheName - Cache name.public IgniteInternalFuture<?> resetCacheState(Collection<String> cacheNames)
cacheNames - Cache names.public CacheType cacheType(String cacheName)
cacheName - Cache name.public void saveCacheConfiguration(DynamicCacheDescriptor desc) throws IgniteCheckedException
desc - Cache descriptor.IgniteCheckedExceptionpublic void cleanupCachesDirectories()
throws IgniteCheckedException
IgniteCheckedExceptionpublic void onDiscoveryEvent(int type,
@Nullable
DiscoveryCustomMessage customMsg,
ClusterNode node,
AffinityTopologyVersion topVer,
DiscoveryDataClusterState state)
type - Event type.customMsg - Custom message instance.node - Event node.topVer - Topology version.state - Cluster state.public boolean onCustomEvent(DiscoveryCustomMessage msg, AffinityTopologyVersion topVer, ClusterNode node)
msg - Customer message.topVer - Current topology version.node - Node sent message.True if minor topology version should be increased.@Nullable public IgniteNodeValidationResult validateNode(ClusterNode node)
validateNode in interface GridComponentvalidateNode in class GridProcessorAdapternode - Joining node.null in case of success.public void resetRestartingCaches()
public long lastDataVersion()
public <K,V> IgniteInternalCache<K,V> cache(String name)
K - type of keys.V - type of values.name - Cache name.public void completeProxyInitialize(String name)
name - Cache name.public <K,V> IgniteInternalCache<K,V> getOrStartCache(String name) throws IgniteCheckedException
name - Cache name.IgniteCheckedException - If failed.public <K,V> IgniteInternalCache<K,V> getOrStartCache(String name, CacheConfiguration ccfg) throws IgniteCheckedException
name - Cache name.IgniteCheckedException - If failed.public Collection<IgniteInternalCache<?,?>> caches()
public Collection<IgniteCacheProxy<?,?>> jcaches()
public <K,V> IgniteInternalCache<K,V> utilityCache()
public <K,V> IgniteInternalCache<K,V> publicCache(String name)
K - type of keys.V - type of values.name - Cache name.public <K,V> IgniteCacheProxy<K,V> publicJCache(String cacheName) throws IgniteCheckedException
K - type of keys.V - type of values.cacheName - Cache name.IgniteCheckedException - If failed.@Nullable public <K,V> IgniteCacheProxy<K,V> publicJCache(String cacheName, boolean failIfNotStarted, boolean checkThreadTx) throws IgniteCheckedException
cacheName - Cache name.failIfNotStarted - If true throws IllegalArgumentException if cache is not started,
otherwise returns null in this case.checkThreadTx - If true checks that current thread does not have active transactions.IgniteCheckedException - If failed.public CacheConfiguration cacheConfiguration(String name)
name - Cache name.public DynamicCacheDescriptor cacheDescriptor(String name)
name - Name.public Map<String,DynamicCacheDescriptor> cacheDescriptors()
public Map<Integer,CacheGroupDescriptor> cacheGroupDescriptors()
@Nullable public DynamicCacheDescriptor cacheDescriptor(int cacheId)
cacheId - Cache ID.public void addCacheConfiguration(CacheConfiguration cacheCfg) throws IgniteCheckedException
cacheCfg - Cache configuration template.IgniteCheckedException - If failed.public <K,V> IgniteCacheProxy<K,V> jcache(String name)
name - Cache name.@Nullable public IgniteCacheProxyImpl<?,?> jcacheProxy(String name, boolean awaitInit)
name - Cache name.awaitInit - Await proxy initialization.@Nullable public IgniteCacheProxyImpl<?,?> addjCacheProxy(String name, IgniteCacheProxyImpl<?,?> proxy)
name - Cache name.proxy - Cache proxy.public Collection<IgniteCacheProxy<?,?>> publicCaches()
public <K,V> GridCacheAdapter<K,V> internalCache(String name)
K - type of keys.V - type of values.name - Cache name.public Collection<GridCacheAdapter<?,?>> internalCaches()
public boolean systemCache(String name)
name - Cache name.True if specified cache is system, false otherwise.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapterpublic void onUndeployed(ClassLoader ldr)
ldr - Class loader.public <K,V> GridCacheSharedContext<K,V> context()
public IgniteTransactionsEx transactions()
public void createMissingQueryCaches()
throws IgniteCheckedException
IgniteCheckedException - In case of error.public void checkEmptyTransactions()
throws IgniteException
IgniteException - If transaction exist.public void enableStatistics(Collection<String> cacheNames, boolean enabled) throws IgniteCheckedException
cacheNames - Collection of cache names.enabled - Statistics enabled flag.IgniteCheckedExceptionpublic void clearStatistics(Collection<String> cacheNames) throws IgniteCheckedException
cacheNames - Collection of cache names.IgniteCheckedExceptionpublic void setTxTimeoutOnPartitionMapExchange(long timeout)
throws IgniteCheckedException
timeout - Transaction timeout on partition map exchange in milliseconds.IgniteCheckedExceptionpublic <T> T clone(T obj)
throws IgniteCheckedException
obj - Object to clone.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019