Package com.microstrategy.webapi
Class MSIRefreshClusterMembershipCache.RCMKey
- java.lang.Object
-
- com.microstrategy.webapi.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.
-
-
Field Summary
-
Fields inherited from interface com.microstrategy.utils.cache.CacheHint
ZERO_STATE_ID
-
-
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 o)
boolean
doResolutions()
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 incrementedjava.util.Optional<java.lang.String>
getCanonicalNameFromKey()
java.lang.String
getHostNameFromKey()
ACMLocalIps.IP_FORMAT
getHostNameIpFormatFromKey()
java.util.Optional<java.lang.String>
getIpAddressFromKey()
java.util.Optional<java.lang.Boolean>
getIsLocalIpFromKey()
int
getPortFromKey()
java.util.Optional<java.lang.String>
getServerReportedNameFromKey()
int
hashCode()
void
setCacheStateId(java.lang.String name, java.lang.Long stateId)
Sets the stateId - seeCacheHint.getCacheStateId(String)
.void
setIpAddressToKey(java.lang.String iIpAddress)
void
setIsLocalIpToKey(boolean iIsLocalIp)
-
-
-
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 interfaceCacheHint
- Parameters:
name
- cache name- Returns:
- current state of the cache hint
-
setCacheStateId
public void setCacheStateId(java.lang.String name, java.lang.Long stateId)
Description copied from interface:CacheHint
Sets the stateId - seeCacheHint.getCacheStateId(String)
.- Specified by:
setCacheStateId
in interfaceCacheHint
- Parameters:
name
- cache namestateId
- new cache state id
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.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()
-
getHostNameIpFormatFromKey
public ACMLocalIps.IP_FORMAT getHostNameIpFormatFromKey()
-
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)
-
-