Class MSIRefreshClusterMembershipCache.RCMKey

  • All Implemented Interfaces:
    CacheHint, java.lang.Comparable<java.lang.Object>
    Enclosing class:
    MSIRefreshClusterMembershipCache

    public static class MSIRefreshClusterMembershipCache.RCMKey
    extends java.lang.Object
    implements CacheHint
    RCMKey is the key to the getClusterMembership cache. The key is based on the ACMClusterMapKey.ClusterNodeKey so that lookups and comparisons are maximally accurate. It cannot be directly a ACMClusterMapKey.ClusterNodeKey because it must implement the CacheHintT interface so it can be used in the caching infrastructure.
    • Constructor Summary

      Constructors 
      Constructor Description
      RCMKey​(com.microstrategy.webapi.CDSSXMLClusterNode iClusterNode, java.lang.String iExpectedClusterName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object iObject)  
      boolean equals​(java.lang.Object o)  
      java.lang.Long getCacheStateId​(java.lang.String name)
      Returns a value for the current state of the cache hint This value is used in maintaining cache consistency across different caches using the same hint object (for instance, session based cache across a web cluster where each machine in the cluster holds a copy of the cache) Whenever a change is made to the cached value in one cache, the stateId is incremented
      java.lang.String getCanonicalName()  
      com.microstrategy.webapi.CDSSXMLClusterNode getClusterNode()  
      java.lang.String getHostName()  
      java.util.Optional<com.microstrategy.webapi.ACMClusterMapKey.Ip> getIpAddress()  
      int getPort()  
      java.lang.String getServerReportedName()  
      int hashCode()  
      void setCacheStateId​(java.lang.String name, java.lang.Long stateId)
      Sets the stateId - see CacheHint.getCacheStateId(String).
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RCMKey

        public RCMKey​(com.microstrategy.webapi.CDSSXMLClusterNode iClusterNode,
                      java.lang.String iExpectedClusterName)
    • Method Detail

      • getCacheStateId

        public java.lang.Long getCacheStateId​(java.lang.String name)
        Description copied from interface: CacheHint
        Returns a value for the current state of the cache hint This value is used in maintaining cache consistency across different caches using the same hint object (for instance, session based cache across a web cluster where each machine in the cluster holds a copy of the cache) Whenever a change is made to the cached value in one cache, the stateId is incremented
        Specified by:
        getCacheStateId in interface CacheHint
        Parameters:
        name - cache name
        Returns:
        current state of the cache hint
      • getClusterNode

        public com.microstrategy.webapi.CDSSXMLClusterNode getClusterNode()
      • compareTo

        public int compareTo​(java.lang.Object iObject)
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.Object>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getIpAddress

        public java.util.Optional<com.microstrategy.webapi.ACMClusterMapKey.Ip> getIpAddress()
      • getHostName

        public java.lang.String getHostName()
      • getServerReportedName

        public java.lang.String getServerReportedName()
      • getCanonicalName

        public java.lang.String getCanonicalName()
      • getPort

        public int getPort()