Interface ClusterServiceIF

All Known Implementing Classes:
JGroupsClusterService

public interface ClusterServiceIF
Service interface that provides clustering functionalitiy for ontopia RDBMS persistence.
  • Method Details

    • type

      String type()
      A prefix to be used in cluster name configuration to indicate this service. For example: "jgroups"
      Returns:
    • getCluster

      ClusterIF getCluster(String clusterName, RDBMSStorage storage)
      Get a ClusterIF implementation specific to this cluster service.
      Parameters:
      clusterName - The name of the cluster specified in configuration
      storage - The storage that will be using the cluster
      Returns:
      A ClusterIF implementation
    • getCaches

      CachesIF getCaches(ClusterIF cluster)
      Get a CachesIF implementation specific to this service, or null if a default implementation is to be used.
      Parameters:
      cluster - The cluster returned by getCluster(java.lang.String, net.ontopia.persistence.proxy.RDBMSStorage)
      Returns:
      A CachesIF implementation
    • getServices

      static Set<ClusterServiceIF> getServices() throws IOException
      Loads all ClusterServiceIF implementations on the classpath
      Returns:
      Throws:
      IOException
    • getClusterService

      static ClusterServiceIF getClusterService(String type) throws IOException
      Loads a ClusterServiceIF for the provided type.
      Parameters:
      type - A type identifier to match to type()
      Returns:
      A ClusterServiceIF or null if non was found
      Throws:
      IOException