Class CacheGroupDescriptor
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheGroupDescriptor
-
public class CacheGroupDescriptor extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddWalChangeRequest(WalStateProposeMessage msg)Add pending WAL change request.CacheConfigurationEnrichmentcacheConfigurationEnrichment()StringcacheOrGroupName()Map<String,Integer>caches()CacheConfiguration<?,?>config()voidconfig(CacheConfiguration cacheCfg)voidconfigurationEnriched(boolean cacheCfgEnriched)IgniteUuiddeploymentId()booleanequals(Object o)intgroupId()@Nullable StringgroupName()inthashCode()booleanhasWalChangeRequests()booleanisConfigurationEnriched()@Nullable WalStateProposeMessagenextWalChangeRequest()booleanpersistenceEnabled()UUIDreceivedFrom()voidremoveWalChangeRequest()Remove pending WAL change request.booleansharedGroup()@Nullable AffinityTopologyVersionstartTopologyVersion()StringtoString()List<WalStateProposeMessage>walChangeRequests()booleanwalEnabled()voidwalEnabled(boolean walEnabled)
-
-
-
Method Detail
-
receivedFrom
public UUID receivedFrom()
- Returns:
- Node ID group was received from.
-
deploymentId
public IgniteUuid deploymentId()
- Returns:
- Deployment ID.
-
walEnabled
public boolean walEnabled()
- Returns:
Trueif WAL is enabled for cache group.
-
walEnabled
public void walEnabled(boolean walEnabled)
- Parameters:
walEnabled-Trueif WAL is enabled for cache group.
-
walChangeRequests
public List<WalStateProposeMessage> walChangeRequests()
- Returns:
- Pending WAL change requests.
-
hasWalChangeRequests
public boolean hasWalChangeRequests()
- Returns:
Truewhether there are pending WAL change requests.
-
nextWalChangeRequest
@Nullable public @Nullable WalStateProposeMessage nextWalChangeRequest()
- Returns:
- Next pending WAL change request or
nullif none available.
-
addWalChangeRequest
public boolean addWalChangeRequest(WalStateProposeMessage msg)
Add pending WAL change request.- Parameters:
msg- Message.- Returns:
Trueif this is the very first enlisted message.
-
removeWalChangeRequest
public void removeWalChangeRequest()
Remove pending WAL change request.
-
sharedGroup
public boolean sharedGroup()
- Returns:
Trueif group can contain multiple caches.
-
cacheOrGroupName
public String cacheOrGroupName()
- Returns:
- Group name if it is specified, otherwise cache name.
-
groupName
@Nullable public @Nullable String groupName()
- Returns:
- Group name or
nullif group name was not specified for cache.
-
groupId
public int groupId()
- Returns:
- Group ID.
-
config
public CacheConfiguration<?,?> config()
- Returns:
- Configuration.
-
config
public void config(CacheConfiguration cacheCfg)
- Parameters:
cacheCfg- Cache config.
-
startTopologyVersion
@Nullable public @Nullable AffinityTopologyVersion startTopologyVersion()
- Returns:
- Start version for dynamically started group.
-
persistenceEnabled
public boolean persistenceEnabled()
- Returns:
- Persistence enabled flag.
-
cacheConfigurationEnrichment
public CacheConfigurationEnrichment cacheConfigurationEnrichment()
- Returns:
- Cache configuration enrichment.
-
isConfigurationEnriched
public boolean isConfigurationEnriched()
- Returns:
Trueif cache configuration is already enriched.
-
configurationEnriched
public void configurationEnriched(boolean cacheCfgEnriched)
- Parameters:
cacheCfgEnriched- Is configuration enriched.
-
-