Class CacheGroupDescriptor


  • public class CacheGroupDescriptor
    extends Object
    • 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:
        True if WAL is enabled for cache group.
      • walEnabled

        public void walEnabled​(boolean walEnabled)
        Parameters:
        walEnabled - True if WAL is enabled for cache group.
      • hasWalChangeRequests

        public boolean hasWalChangeRequests()
        Returns:
        True whether there are pending WAL change requests.
      • nextWalChangeRequest

        @Nullable
        public @Nullable WalStateProposeMessage nextWalChangeRequest()
        Returns:
        Next pending WAL change request or null if none available.
      • addWalChangeRequest

        public boolean addWalChangeRequest​(WalStateProposeMessage msg)
        Add pending WAL change request.
        Parameters:
        msg - Message.
        Returns:
        True if this is the very first enlisted message.
      • removeWalChangeRequest

        public void removeWalChangeRequest()
        Remove pending WAL change request.
      • sharedGroup

        public boolean sharedGroup()
        Returns:
        True if 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 null if group name was not specified for cache.
      • groupId

        public int groupId()
        Returns:
        Group ID.
      • 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:
        True if cache configuration is already enriched.
      • configurationEnriched

        public void configurationEnriched​(boolean cacheCfgEnriched)
        Parameters:
        cacheCfgEnriched - Is configuration enriched.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object