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 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 incrementedjava.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 - seeCacheHint.getCacheStateId(String)
.
-
-
-
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
-
getClusterNode
public com.microstrategy.webapi.CDSSXMLClusterNode getClusterNode()
-
compareTo
public int compareTo(java.lang.Object iObject)
- Specified by:
compareTo
in interfacejava.lang.Comparable<java.lang.Object>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.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()
-
-