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 intcompareTo(java.lang.Object o)booleandoResolutions()booleanequals(java.lang.Object o)java.lang.LonggetCacheStateId(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.StringgetHostNameFromKey()ACMLocalIps.IP_FORMATgetHostNameIpFormatFromKey()java.util.Optional<java.lang.String>getIpAddressFromKey()java.util.Optional<java.lang.Boolean>getIsLocalIpFromKey()intgetPortFromKey()java.util.Optional<java.lang.String>getServerReportedNameFromKey()inthashCode()voidsetCacheStateId(java.lang.String name, java.lang.Long stateId)Sets the stateId - seeCacheHint.getCacheStateId(String).voidsetIpAddressToKey(java.lang.String iIpAddress)voidsetIsLocalIpToKey(boolean iIsLocalIp) 
 - 
 
- 
- 
Method Detail
- 
getCacheStateId
public java.lang.Long getCacheStateId(java.lang.String name)
Description copied from interface:CacheHintReturns 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:
 getCacheStateIdin 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:CacheHintSets the stateId - seeCacheHint.getCacheStateId(String).- Specified by:
 setCacheStateIdin interfaceCacheHint- Parameters:
 name- cache namestateId- new cache state id
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
 compareToin 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)
 
 - 
 
 -