Class JGroupsClusterService
java.lang.Object
net.ontopia.persistence.proxy.jgroups.JGroupsClusterService
- All Implemented Interfaces:
ClusterServiceIF
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a CachesIF implementation specific to this service, or null if a default implementation is to be used.getCluster(String clusterName, RDBMSStorage storage) Get a ClusterIF implementation specific to this cluster service.static voidsetExternalChannel(org.jgroups.JChannel channel) type()A prefix to be used in cluster name configuration to indicate this service.
-
Field Details
-
JGROUPS
- See Also:
-
-
Constructor Details
-
JGroupsClusterService
public JGroupsClusterService()
-
-
Method Details
-
type
Description copied from interface:ClusterServiceIFA prefix to be used in cluster name configuration to indicate this service. For example: "jgroups"- Specified by:
typein interfaceClusterServiceIF- Returns:
-
getCluster
Description copied from interface:ClusterServiceIFGet a ClusterIF implementation specific to this cluster service.- Specified by:
getClusterin interfaceClusterServiceIF- Parameters:
clusterName- The name of the cluster specified in configurationstorage- The storage that will be using the cluster- Returns:
- A ClusterIF implementation
-
getCaches
Description copied from interface:ClusterServiceIFGet a CachesIF implementation specific to this service, or null if a default implementation is to be used.- Specified by:
getCachesin interfaceClusterServiceIF- Parameters:
cluster- The cluster returned byClusterServiceIF.getCluster(java.lang.String, net.ontopia.persistence.proxy.RDBMSStorage)- Returns:
- A CachesIF implementation
-
setExternalChannel
public static void setExternalChannel(org.jgroups.JChannel channel)
-