Class MSIRefreshClusterMembershipCache.RCMKey

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

    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 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
        name - cache name
        current state of the cache hint
      • equals

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

        public int hashCode()
        hashCode in class java.lang.Object
      • compareTo

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

        public java.util.Optional<java.lang.String> getIpAddressFromKey()
      • getIsLocalIpFromKey

        public java.util.Optional<java.lang.Boolean> getIsLocalIpFromKey()
      • getHostNameFromKey

        public java.lang.String getHostNameFromKey()
      • getServerReportedNameFromKey

        public java.util.Optional<java.lang.String> getServerReportedNameFromKey()
      • getCanonicalNameFromKey

        public java.util.Optional<java.lang.String> getCanonicalNameFromKey()
      • getPortFromKey

        public int getPortFromKey()
      • doResolutions

        public boolean doResolutions()
      • setIpAddressToKey

        public void setIpAddressToKey​(java.lang.String iIpAddress)
      • setIsLocalIpToKey

        public void setIsLocalIpToKey​(boolean iIsLocalIp)