Interface ClusterContext


  • public interface ClusterContext
    Initial interface passed to a ClusterNode.
    • 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

        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