|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IClusterCacheArea
Represents a cacheable area. A cacheable area is identified by its unique ID. An area is either in state valid or invalid. These states are toggled by the following events:
| from | event | to | side-effect | |
|---|---|---|---|---|
VALID | validate() |
VALID |
initial state, calling validate() won't do anything. |
|
VALID | invalidate() |
VALID |
calling invalidate() will send an INVALIDATE event and update the getLastNodeInvalidation() timestamp. |
|
VALID | INVALIDATE | INVALID |
an INVALIDATE event from other cluster nodes invalidates the cache area and updates the getLastClusterInvalidation() timestamp. |
|
INVALID | INVALIDATE | INVALID |
INVALIDATE event in INVALID state just update the getLastClusterInvalidation() timestamp. |
|
INVALID | invalidate() |
INVALID |
calling invalidate() will send an INVALIDATE event and update the getLastNodeInvalidation() timestamp. |
|
INVALID | validate() |
VALID |
calling validate() toogles the state back to VALID. |
IDMapper.
| Method Summary | |
|---|---|
String |
getAreaID()
Get the area's ID. |
long |
getClusterTimeout()
Get the cluster cache timeout. |
long |
getLastClusterInvalidation()
Get the timestamp of the last (external) invalidation from other cluster nodes. |
long |
getLastInvalidation()
Get the timestamp of the last invalidation (internally or externally, the later one). |
long |
getLastNodeInvalidation()
Get the timestamp of the last (internal) invalidation from this node. |
void |
invalidate()
Mark this cache area as invalid. |
boolean |
isCluster()
Get the cluster's cache flag. |
boolean |
isValid()
Check, if this cache area is marked as invalid. |
void |
refresh(ICache cache)
Remove all expired entries from the given cache (does a cache.removeEntriesOlderThan(getLastClusterInvalidation())). |
void |
validate()
Mark this cache area as valid. |
| Method Detail |
|---|
String getAreaID()
String, which holds the area's ID.boolean isCluster()
true if the system is running in cluster mode.long getClusterTimeout()
long with the system's cluster cache timeout in
msec.void validate()
INVALID to VALID.
void refresh(ICache cache)
throws CacheException
cache.removeEntriesOlderThan(getLastClusterInvalidation())).
cache - the ICache to remove expired entries from.
CacheExceptionvoid invalidate()
boolean isValid()
true, if state is VALID.long getLastInvalidation()
getLastExternalInvalidation() and
getLastInternalInvalidation().long getLastClusterInvalidation()
long with the timestamp of the last incoming
INVALIDATE event.long getLastNodeInvalidation()
long with the timestamp of the last call to
invalidate().| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||