Class PMContext

    • Constructor Detail

      • PMContext

        public PMContext​(File homeDir,
                         org.apache.jackrabbit.core.fs.FileSystem fs,
                         NodeId rootNodeId,
                         NamespaceRegistry nsReg,
                         NodeTypeRegistry ntReg,
                         org.apache.jackrabbit.core.data.DataStore dataStore,
                         org.apache.jackrabbit.stats.RepositoryStatisticsImpl stats)
        Creates a new PMContext.
        Parameters:
        homeDir - the physical home directory
        fs - the virtual jackrabbit filesystem
        rootNodeId - id of the root node
        nsReg - namespace registry
        ntReg - node type registry
    • Method Detail

      • getHomeDir

        public File getHomeDir()
        Returns the physical home directory for this persistence manager
        Returns:
        the physical home directory for this persistence manager
      • getFileSystem

        public org.apache.jackrabbit.core.fs.FileSystem getFileSystem()
        Returns the virtual filesystem for this persistence manager
        Returns:
        the virtual filesystem for this persistence manager
      • getRootNodeId

        public NodeId getRootNodeId()
        Returns the id of the root node
        Returns:
        the id of the root node
      • getNamespaceRegistry

        public NamespaceRegistry getNamespaceRegistry()
        Returns the namespace registry
        Returns:
        the namespace registry
      • getNodeTypeRegistry

        public NodeTypeRegistry getNodeTypeRegistry()
        Returns the node type registry
        Returns:
        the node type registry
      • getDataStore

        public org.apache.jackrabbit.core.data.DataStore getDataStore()
        Returns the data store
        Returns:
        the data store
      • getRepositoryStatistics

        public org.apache.jackrabbit.stats.RepositoryStatisticsImpl getRepositoryStatistics()
        Returns the repository statistics collector.
        Returns:
        repository statistics