org.apache.jackrabbit.core.cluster
Interface ClusterContext


public interface ClusterContext

Initial interface passed to a ClusterNode.


Method Summary
 ClusterConfig getClusterConfig()
          Return the cluster configuration.
 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

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


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.