Interface ClusterContext
-
public interface ClusterContextInitial interface passed to aClusterNode.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClusterConfiggetClusterConfig()Return the cluster configuration.NamespaceResolvergetNamespaceResolver()Return a namespace resolver to map prefixes to URIs and vice-versaFilegetRepositoryHome()Return the repository home directory.voidlockEventsReady(String workspace)Notifies the cluster context that some workspace lock events are available and that it should start up a listener to receive them.voidupdateEventsReady(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
-
-