Package net.ontopia.persistence.proxy
Class JGroupsCluster
java.lang.Object
org.jgroups.ReceiverAdapter
net.ontopia.persistence.proxy.JGroupsCluster
- All Implemented Interfaces:
ClusterIF,org.jgroups.MembershipListener,org.jgroups.MessageListener,org.jgroups.Receiver,org.jgroups.StateListener
INTERNAL: Class that represents a cluster of OKS instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected org.jgroups.JChannelprotected ConcurrentLinkedQueue<JGroupsEvent>protected StorageIFFields 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
ConstructorsModifierConstructorDescriptionprotectedJGroupsCluster(String clusterId, String clusterProps, StorageIF storage) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearCache(IdentityIF namespace, int cacheType) voidvoidevictCache(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 voidvoidreceive(org.jgroups.Message msg) voidviewAccepted(org.jgroups.View view) Methods inherited from class org.jgroups.ReceiverAdapter
block, getState, receive, setState, suspect, unblock
-
Field Details
-
dchannel
protected org.jgroups.JChannel dchannel -
clusterId
-
clusterProps
-
storage
-
queue
-
-
Constructor Details
-
JGroupsCluster
-
-
Method Details
-
join
public void join() -
leave
public void leave() -
evictIdentity
- Specified by:
evictIdentityin interfaceClusterIF
-
evictFields
- Specified by:
evictFieldsin interfaceClusterIF
-
evictField
- Specified by:
evictFieldin interfaceClusterIF
-
clearDatacache
public void clearDatacache()- Specified by:
clearDatacachein interfaceClusterIF
-
evictCache
- Specified by:
evictCachein interfaceClusterIF
-
evictCache
- Specified by:
evictCachein interfaceClusterIF
-
clearCache
- Specified by:
clearCachein interfaceClusterIF
-
flush
public void flush() -
processEvent
-
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
-