public class InMemoryRepository extends DfsRepository
This implementation builds on the DFS repository by storing all reference and object data in the local process. It is not very efficient and exists only for unit testing and small experiments.
The repository is thread-safe. Memory used is released only when this object is garbage collected. Closing the repository has no impact on its memory.
Constructor and Description |
---|
InMemoryRepository(DfsRepositoryDescription repoDesc)
Initialize a new in-memory repository.
|
Modifier and Type | Method and Description |
---|---|
DfsObjDatabase |
getObjectDatabase() |
DfsRefDatabase |
getRefDatabase() |
create, exists, getConfig, getDescription, getReflogReader, notifyIndexChanged, scanForRepoChanges
close, create, doClose, fireEvent, getAdditionalHaves, getAllRefs, getAllRefsByPeeledObjectId, getBranch, getDirectory, getFS, getFullBranch, getGlobalListenerList, getIndexFile, getListenerList, getRef, getRemoteName, getRemoteNames, getRepositoryState, getTags, getWorkTree, hasObject, incrementOpen, isBare, isValidRefName, lockDirCache, newObjectInserter, newObjectReader, open, open, peel, readCherryPickHead, readDirCache, readMergeCommitMsg, readMergeHeads, readOrigHead, readRebaseTodo, readRevertHead, readSquashCommitMsg, renameRef, resolve, shortenRefName, shortenRemoteBranchName, simplify, stripWorkDir, toString, updateRef, updateRef, writeCherryPickHead, writeMergeCommitMsg, writeMergeHeads, writeOrigHead, writeRebaseTodoFile, writeRevertHead, writeSquashCommitMsg
public InMemoryRepository(DfsRepositoryDescription repoDesc)
repoDesc
- description of the repository.public DfsObjDatabase getObjectDatabase()
getObjectDatabase
in class DfsRepository
public DfsRefDatabase getRefDatabase()
getRefDatabase
in class DfsRepository
Copyright © 2015. All rights reserved.