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 String
clusterId
protected String
clusterProps
protected org.jgroups.JChannel
dchannel
protected ConcurrentLinkedQueue<JGroupsEvent>
queue
protected StorageIF
storage
-
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 protected
JGroupsCluster(String clusterId, String clusterProps, StorageIF storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache(IdentityIF namespace, int cacheType)
void
clearDatacache()
void
evictCache(IdentityIF namespace, int cacheType, Object key)
void
evictCache(IdentityIF namespace, int cacheType, Collection keys)
void
evictField(IdentityIF identity, int field)
void
evictFields(IdentityIF identity)
void
evictIdentity(IdentityIF identity)
void
flush()
void
join()
void
leave()
protected void
processEvent(JGroupsEvent e)
void
receive(org.jgroups.Message msg)
void
viewAccepted(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:
evictIdentity
in interfaceClusterIF
-
evictFields
public void evictFields(IdentityIF identity)
- Specified by:
evictFields
in interfaceClusterIF
-
evictField
public void evictField(IdentityIF identity, int field)
- Specified by:
evictField
in interfaceClusterIF
-
clearDatacache
public void clearDatacache()
- Specified by:
clearDatacache
in interfaceClusterIF
-
evictCache
public void evictCache(IdentityIF namespace, int cacheType, Object key)
- Specified by:
evictCache
in interfaceClusterIF
-
evictCache
public void evictCache(IdentityIF namespace, int cacheType, Collection keys)
- Specified by:
evictCache
in interfaceClusterIF
-
clearCache
public void clearCache(IdentityIF namespace, int cacheType)
- Specified by:
clearCache
in interfaceClusterIF
-
processEvent
protected void processEvent(JGroupsEvent e)
-
receive
public void receive(org.jgroups.Message msg)
- Specified by:
receive
in interfaceorg.jgroups.MessageListener
- Overrides:
receive
in classorg.jgroups.ReceiverAdapter
-
viewAccepted
public void viewAccepted(org.jgroups.View view)
- Specified by:
viewAccepted
in interfaceorg.jgroups.MembershipListener
- Overrides:
viewAccepted
in classorg.jgroups.ReceiverAdapter
-
-