org.apache.jackrabbit.mk.core
Class Repository

java.lang.Object
  extended by org.apache.jackrabbit.mk.core.Repository

public class Repository
extends Object


Constructor Summary
protected Repository()
          Argument-less constructor, used for in-memory kernel.
  Repository(RevisionStore rs, BlobStore bs)
          Alternate constructor, used for testing.
  Repository(String homeDir)
           
 
Method Summary
 BlobStore getBlobStore()
           
 StoredCommit getCommit(Id id)
           
 CommitBuilder getCommitBuilder(Id revId, String msg)
           
 StoredCommit getHeadCommit()
           
 Id getHeadRevision()
           
 NodeState getNodeState(Id revId, String path)
           
 RevisionStore getRevisionStore()
           
 void init()
           
 boolean nodeExists(Id revId, String path)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

public Repository(String homeDir)
           throws Exception
Throws:
Exception

Repository

public Repository(RevisionStore rs,
                  BlobStore bs)
Alternate constructor, used for testing.

Parameters:
rs - revision store
bs - blob store

Repository

protected Repository()
Argument-less constructor, used for in-memory kernel.

Method Detail

init

public void init()
          throws Exception
Throws:
Exception

shutDown

public void shutDown()
              throws Exception
Throws:
Exception

getRevisionStore

public RevisionStore getRevisionStore()

getBlobStore

public BlobStore getBlobStore()

getHeadRevision

public Id getHeadRevision()
                   throws Exception
Throws:
Exception

getHeadCommit

public StoredCommit getHeadCommit()
                           throws Exception
Throws:
Exception

getCommit

public StoredCommit getCommit(Id id)
                       throws NotFoundException,
                              Exception
Throws:
NotFoundException
Exception

getNodeState

public NodeState getNodeState(Id revId,
                              String path)
                       throws NotFoundException,
                              Exception
Throws:
NotFoundException
Exception

nodeExists

public boolean nodeExists(Id revId,
                          String path)

getCommitBuilder

public CommitBuilder getCommitBuilder(Id revId,
                                      String msg)
                               throws Exception
Throws:
Exception


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.