Class PMContext
- java.lang.Object
-
- org.apache.jackrabbit.core.persistence.PMContext
-
public class PMContext extends Object
APMContextis used to provide context information for aPersistenceManager.- See Also:
PersistenceManager.init(PMContext)
-
-
Constructor Summary
Constructors Constructor Description PMContext(File homeDir, FileSystem fs, NodeId rootNodeId, NamespaceRegistry nsReg, NodeTypeRegistry ntReg, DataStore dataStore, RepositoryStatisticsImpl stats)Creates a newPMContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStoregetDataStore()Returns the data storeFileSystemgetFileSystem()Returns the virtual filesystem for this persistence managerFilegetHomeDir()Returns the physical home directory for this persistence managerNamespaceRegistrygetNamespaceRegistry()Returns the namespace registryNodeTypeRegistrygetNodeTypeRegistry()Returns the node type registryRepositoryStatisticsImplgetRepositoryStatistics()Returns the repository statistics collector.NodeIdgetRootNodeId()Returns the id of the root node
-
-
-
Constructor Detail
-
PMContext
public PMContext(File homeDir, FileSystem fs, NodeId rootNodeId, NamespaceRegistry nsReg, NodeTypeRegistry ntReg, DataStore dataStore, RepositoryStatisticsImpl stats)
Creates a newPMContext.- Parameters:
homeDir- the physical home directoryfs- the virtual jackrabbit filesystemrootNodeId- id of the root nodensReg- namespace registryntReg- 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 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 DataStore getDataStore()
Returns the data store- Returns:
- the data store
-
getRepositoryStatistics
public RepositoryStatisticsImpl getRepositoryStatistics()
Returns the repository statistics collector.- Returns:
- repository statistics
-
-