Package net.ontopia.persistence.proxy
Interface ClusterServiceIF
- All Known Implementing Classes:
JGroupsClusterService
public interface ClusterServiceIF
Service interface that provides clustering functionalitiy for ontopia RDBMS persistence.
-
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 ClusterServiceIFgetClusterService(String type) Loads a ClusterServiceIF for the provided type.static Set<ClusterServiceIF>Loads all ClusterServiceIF implementations on the classpathtype()A prefix to be used in cluster name configuration to indicate this service.
-
Method Details
-
type
String type()A prefix to be used in cluster name configuration to indicate this service. For example: "jgroups"- Returns:
-
getCluster
Get a ClusterIF implementation specific to this cluster service.- Parameters:
clusterName- The name of the cluster specified in configurationstorage- The storage that will be using the cluster- Returns:
- A ClusterIF implementation
-
getCaches
Get a CachesIF implementation specific to this service, or null if a default implementation is to be used.- Parameters:
cluster- The cluster returned bygetCluster(java.lang.String, net.ontopia.persistence.proxy.RDBMSStorage)- Returns:
- A CachesIF implementation
-
getServices
Loads all ClusterServiceIF implementations on the classpath- Returns:
- Throws:
IOException
-
getClusterService
Loads a ClusterServiceIF for the provided type.- Parameters:
type- A type identifier to match totype()- Returns:
- A ClusterServiceIF or null if non was found
- Throws:
IOException
-