Interface ClusterContext


  • public interface ClusterContext
    Initial interface passed to a ClusterNode.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ClusterConfig getClusterConfig()
      Return the cluster configuration.
      org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver getNamespaceResolver()
      Return a namespace resolver to map prefixes to URIs and vice-versa
      File getRepositoryHome()
      Return the repository home directory.
      void lockEventsReady​(String workspace)
      Notifies the cluster context that some workspace lock events are available and that it should start up a listener to receive them.
      void updateEventsReady​(String workspace)
      Notifies the cluster context that some workspace update events are available and that it should start up a listener to receive them.
    • Method Detail

      • getClusterConfig

        ClusterConfig getClusterConfig()
        Return the cluster configuration.
        Returns:
        cluster configuration
      • getRepositoryHome

        File getRepositoryHome()
        Return the repository home directory.
        Returns:
        repository home directory
      • getNamespaceResolver

        org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver getNamespaceResolver()
        Return a namespace resolver to map prefixes to URIs and vice-versa
        Returns:
        namespace resolver
      • updateEventsReady

        void updateEventsReady​(String workspace)
                        throws RepositoryException
        Notifies the cluster context that some workspace update events are available and that it should start up a listener to receive them.
        Parameters:
        workspace - workspace name
        Throws:
        RepositoryException - if the context is unable to provide the listener
      • lockEventsReady

        void lockEventsReady​(String workspace)
                      throws RepositoryException
        Notifies the cluster context that some workspace lock events are available and that it should start up a listener to receive them.
        Parameters:
        workspace - workspace name
        Throws:
        RepositoryException - if the context is unable to provide the listener