Package net.ontopia.persistence.proxy
Class JGroupsCluster
- java.lang.Object
-
- org.jgroups.ReceiverAdapter
-
- net.ontopia.persistence.proxy.JGroupsCluster
-
-
Field Summary
Fields Modifier and Type Field Description protected StringclusterIdprotected StringclusterPropsprotected org.jgroups.JChanneldchannelprotected ConcurrentLinkedQueue<JGroupsEvent>queueprotected StorageIFstorage-
Fields inherited from interface net.ontopia.persistence.proxy.ClusterIF
DATA_CACHE_CLEAR, DATA_CACHE_FIELD_EVICT, DATA_CACHE_FIELDS_EVICT, DATA_CACHE_IDENTITY_EVICT, QUERY_CACHE_RT1_CLEAR, QUERY_CACHE_RT1_EVICT, QUERY_CACHE_RT2_CLEAR, QUERY_CACHE_RT2_EVICT, QUERY_CACHE_SRCLOC_CLEAR, QUERY_CACHE_SRCLOC_EVICT, QUERY_CACHE_SUBIND_CLEAR, QUERY_CACHE_SUBIND_EVICT, QUERY_CACHE_SUBLOC_CLEAR, QUERY_CACHE_SUBLOC_EVICT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJGroupsCluster(String clusterId, String clusterProps, StorageIF storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache(IdentityIF namespace, int cacheType)voidclearDatacache()voidevictCache(IdentityIF namespace, int cacheType, Object key)voidevictCache(IdentityIF namespace, int cacheType, Collection keys)voidevictField(IdentityIF identity, int field)voidevictFields(IdentityIF identity)voidevictIdentity(IdentityIF identity)voidflush()voidjoin()voidleave()protected voidprocessEvent(JGroupsEvent e)voidreceive(org.jgroups.Message msg)voidviewAccepted(org.jgroups.View view)
-
-
-
Field Detail
-
dchannel
protected org.jgroups.JChannel dchannel
-
clusterId
protected String clusterId
-
clusterProps
protected String clusterProps
-
storage
protected StorageIF storage
-
queue
protected ConcurrentLinkedQueue<JGroupsEvent> queue
-
-
Method Detail
-
evictIdentity
public void evictIdentity(IdentityIF identity)
- Specified by:
evictIdentityin interfaceClusterIF
-
evictFields
public void evictFields(IdentityIF identity)
- Specified by:
evictFieldsin interfaceClusterIF
-
evictField
public void evictField(IdentityIF identity, int field)
- Specified by:
evictFieldin interfaceClusterIF
-
clearDatacache
public void clearDatacache()
- Specified by:
clearDatacachein interfaceClusterIF
-
evictCache
public void evictCache(IdentityIF namespace, int cacheType, Object key)
- Specified by:
evictCachein interfaceClusterIF
-
evictCache
public void evictCache(IdentityIF namespace, int cacheType, Collection keys)
- Specified by:
evictCachein interfaceClusterIF
-
clearCache
public void clearCache(IdentityIF namespace, int cacheType)
- Specified by:
clearCachein interfaceClusterIF
-
processEvent
protected void processEvent(JGroupsEvent e)
-
receive
public void receive(org.jgroups.Message msg)
- Specified by:
receivein interfaceorg.jgroups.MessageListener- Overrides:
receivein classorg.jgroups.ReceiverAdapter
-
viewAccepted
public void viewAccepted(org.jgroups.View view)
- Specified by:
viewAcceptedin interfaceorg.jgroups.MembershipListener- Overrides:
viewAcceptedin classorg.jgroups.ReceiverAdapter
-
-