Package org.apache.subversion.javahl
Class SVNRepos
- java.lang.Object
-
- org.apache.subversion.javahl.SVNRepos
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.subversion.javahl.ISVNRepos
ISVNRepos.MessageReceiver
-
-
Field Summary
Fields Modifier and Type Field Description private SVNReposImpldelegate
-
Constructor Summary
Constructors Constructor Description SVNRepos()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelOperation()cancel the active operationvoidcreate(java.io.File path, boolean disableFsyncCommit, boolean keepLog, java.io.File configPath, java.lang.String fstype)create a subversion repository.voiddeltify(java.io.File path, Revision start, Revision end)deltify the revisions in the repositoryvoiddispose()release the native peer (should not depend on finalize)voiddump(java.io.File path, java.io.OutputStream dataOut, Revision start, Revision end, boolean incremental, boolean useDeltas, ReposNotifyCallback callback)dump the data in a repositoryvoidfreeze(ReposFreezeAction action, java.io.File... paths)Take an exclusive lock on each of the listed repositories to prevent commits; then, while holding all the locks, call the action.invoke().VersiongetVersion()voidhotcopy(java.io.File path, java.io.File targetPath, boolean cleanLogs)voidhotcopy(java.io.File path, java.io.File targetPath, boolean cleanLogs, boolean incremental)make a hot copy of the repositoryvoidlistDBLogs(java.io.File path, ISVNRepos.MessageReceiver receiver)list all logfiles (BDB) in use or not)voidlistUnusedDBLogs(java.io.File path, ISVNRepos.MessageReceiver receiver)list unused logfilesvoidload(java.io.File path, java.io.InputStream dataInput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, java.lang.String relativePath, ReposNotifyCallback callback)load the data of a dump into a repositoryvoidload(java.io.File path, java.io.InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, java.lang.String relativePath, ReposNotifyCallback callback)load the data of a dump into a repositoryjava.util.Set<Lock>lslocks(java.io.File path, Depth depth)list all locks in the repositoryvoidlstxns(java.io.File path, ISVNRepos.MessageReceiver receiver)list all open transactions in a repositoryvoidpack(java.io.File path, ReposNotifyCallback callback)pack the repositorylongrecover(java.io.File path, ReposNotifyCallback callback)recover the filesystem backend of a repositoryvoidrmlocks(java.io.File path, java.lang.String[] locks)remove multiple locks from the repositoryvoidrmtxns(java.io.File path, java.lang.String[] transactions)remove open transaction in a repositoryvoidsetRevProp(java.io.File path, Revision rev, java.lang.String propName, java.lang.String propValue, boolean usePreRevPropChangeHook, boolean usePostRevPropChangeHook)Change the value of the revision propertypropNametopropValue.voidupgrade(java.io.File path, ReposNotifyCallback callback)upgrade the repository formatvoidverify(java.io.File path, Revision start, Revision end, ReposNotifyCallback callback)Verify the repository atpathbetween revisionsstartandend.
-
-
-
Field Detail
-
delegate
private SVNReposImpl delegate
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:ISVNReposrelease the native peer (should not depend on finalize)
-
getVersion
public Version getVersion()
- Specified by:
getVersionin interfaceISVNRepos- Returns:
- Version information about the underlying native libraries.
-
create
public void create(java.io.File path, boolean disableFsyncCommit, boolean keepLog, java.io.File configPath, java.lang.String fstype) throws ClientExceptionDescription copied from interface:ISVNReposcreate a subversion repository.- Specified by:
createin interfaceISVNRepos- Parameters:
path- the path where the repository will been created.disableFsyncCommit- disable to fsync at the commit (BDB).keepLog- keep the log files (BDB).configPath- optional path for user configuration files.fstype- the type of the filesystem (BDB or FSFS)- Throws:
ClientException- throw in case of problem
-
deltify
public void deltify(java.io.File path, Revision start, Revision end) throws ClientExceptionDescription copied from interface:ISVNReposdeltify the revisions in the repository- Specified by:
deltifyin interfaceISVNRepos- Parameters:
path- the path to the repositorystart- start revisionend- end revision- Throws:
ClientException- throw in case of problem
-
dump
public void dump(java.io.File path, java.io.OutputStream dataOut, Revision start, Revision end, boolean incremental, boolean useDeltas, ReposNotifyCallback callback) throws ClientExceptionDescription copied from interface:ISVNReposdump the data in a repository- Specified by:
dumpin interfaceISVNRepos- Parameters:
path- the path to the repositorydataOut- the data will be outputed herestart- the first revision to be dumpedend- the last revision to be dumpedincremental- the dump will be incremantaluseDeltas- the dump will contain deltas between nodescallback- the callback to recieve notifications- Throws:
ClientException- throw in case of problem
-
hotcopy
public void hotcopy(java.io.File path, java.io.File targetPath, boolean cleanLogs) throws ClientException- Specified by:
hotcopyin interfaceISVNRepos- Throws:
ClientException
-
listDBLogs
public void listDBLogs(java.io.File path, ISVNRepos.MessageReceiver receiver) throws ClientExceptionDescription copied from interface:ISVNReposlist all logfiles (BDB) in use or not)- Specified by:
listDBLogsin interfaceISVNRepos- Parameters:
path- the path to the repositoryreceiver- interface to receive the logfile names- Throws:
ClientException- throw in case of problem
-
listUnusedDBLogs
public void listUnusedDBLogs(java.io.File path, ISVNRepos.MessageReceiver receiver) throws ClientExceptionDescription copied from interface:ISVNReposlist unused logfiles- Specified by:
listUnusedDBLogsin interfaceISVNRepos- Parameters:
path- the path to the repositoryreceiver- interface to receive the logfile names- Throws:
ClientException- throw in case of problem
-
load
public void load(java.io.File path, java.io.InputStream dataInput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, java.lang.String relativePath, ReposNotifyCallback callback) throws ClientExceptionDescription copied from interface:ISVNReposload the data of a dump into a repository- Specified by:
loadin interfaceISVNRepos- Parameters:
path- the path to the repositorydataInput- the data input sourceignoreUUID- ignore any UUID found in the input streamforceUUID- set the repository UUID to any found in the streamusePreCommitHook- use the pre-commit hook when processing commitsusePostCommitHook- use the post-commit hook when processing commitsrelativePath- the directory in the repository, where the data in put optional.callback- the target for processing messages- Throws:
ClientException- throw in case of problem
-
lstxns
public void lstxns(java.io.File path, ISVNRepos.MessageReceiver receiver) throws ClientExceptionDescription copied from interface:ISVNReposlist all open transactions in a repository- Specified by:
lstxnsin interfaceISVNRepos- Parameters:
path- the path to the repositoryreceiver- receives one transaction name per call- Throws:
ClientException- throw in case of problem
-
recover
public long recover(java.io.File path, ReposNotifyCallback callback) throws ClientExceptionDescription copied from interface:ISVNReposrecover the filesystem backend of a repository- Specified by:
recoverin interfaceISVNRepos- Parameters:
path- the path to the repository- Returns:
- youngest revision
- Throws:
ClientException- throw in case of problem
-
rmtxns
public void rmtxns(java.io.File path, java.lang.String[] transactions) throws ClientExceptionDescription copied from interface:ISVNReposremove open transaction in a repository- Specified by:
rmtxnsin interfaceISVNRepos- Parameters:
path- the path to the repositorytransactions- the transactions to be removed- Throws:
ClientException- throw in case of problem
-
setRevProp
public void setRevProp(java.io.File path, Revision rev, java.lang.String propName, java.lang.String propValue, boolean usePreRevPropChangeHook, boolean usePostRevPropChangeHook) throws SubversionExceptionDescription copied from interface:ISVNReposChange the value of the revision propertypropNametopropValue. By default, does not run pre-/post-revprop-change hook scripts.- Specified by:
setRevPropin interfaceISVNRepos- Parameters:
path- The path to the repository.rev- The revision for which to change a property value.propName- The name of the property to change.propValue- The new value to set for the property.usePreRevPropChangeHook- Whether to run the pre-revprop-change hook script.usePostRevPropChangeHook- Whether to run the post-revprop-change hook script.- Throws:
SubversionException- If a problem occurs.
-
verify
public void verify(java.io.File path, Revision start, Revision end, ReposNotifyCallback callback) throws ClientExceptionDescription copied from interface:ISVNReposVerify the repository atpathbetween revisionsstartandend.- Specified by:
verifyin interfaceISVNRepos- Parameters:
path- the path to the repositorystart- the first revisionend- the last revisioncallback- the callback to recieve notifications- Throws:
ClientException- If an error occurred.
-
lslocks
public java.util.Set<Lock> lslocks(java.io.File path, Depth depth) throws ClientException
Description copied from interface:ISVNReposlist all locks in the repository- Specified by:
lslocksin interfaceISVNRepos- Parameters:
path- the path to the repositorydepth- the depth to recurse- Throws:
ClientException- throw in case of problem
-
rmlocks
public void rmlocks(java.io.File path, java.lang.String[] locks) throws ClientExceptionDescription copied from interface:ISVNReposremove multiple locks from the repository- Specified by:
rmlocksin interfaceISVNRepos- Parameters:
path- the path to the repositorylocks- the name of the locked items- Throws:
ClientException- throw in case of problem
-
upgrade
public void upgrade(java.io.File path, ReposNotifyCallback callback) throws ClientExceptionDescription copied from interface:ISVNReposupgrade the repository format- Specified by:
upgradein interfaceISVNRepos- Parameters:
path- the path to the repositorycallback- for notification- Throws:
ClientException- throw in case of problem
-
pack
public void pack(java.io.File path, ReposNotifyCallback callback) throws ClientExceptionDescription copied from interface:ISVNRepospack the repository- Specified by:
packin interfaceISVNRepos- Parameters:
path- the path to the repositorycallback- for notification- Throws:
ClientException- throw in case of problem
-
cancelOperation
public void cancelOperation() throws ClientExceptionDescription copied from interface:ISVNReposcancel the active operation- Specified by:
cancelOperationin interfaceISVNRepos- Throws:
ClientException
-
hotcopy
public void hotcopy(java.io.File path, java.io.File targetPath, boolean cleanLogs, boolean incremental) throws ClientExceptionDescription copied from interface:ISVNReposmake a hot copy of the repository- Specified by:
hotcopyin interfaceISVNRepos- Parameters:
path- the path to the source repositorytargetPath- the path to the target repositorycleanLogs- clean the unused log files in the source repository- Throws:
ClientException- throw in case of problem
-
load
public void load(java.io.File path, java.io.InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, java.lang.String relativePath, ReposNotifyCallback callback) throws ClientExceptionDescription copied from interface:ISVNReposload the data of a dump into a repository- Specified by:
loadin interfaceISVNRepos- Parameters:
path- the path to the repositorydataInput- the data input sourcestart- the first revision to loadend- the last revision to loadignoreUUID- ignore any UUID found in the input streamforceUUID- set the repository UUID to any found in the streamusePreCommitHook- use the pre-commit hook when processing commitsusePostCommitHook- use the post-commit hook when processing commitsrelativePath- the directory in the repository, where the data in put optional.callback- the target for processing messages- Throws:
ClientException- throw in case of problem
-
freeze
public void freeze(ReposFreezeAction action, java.io.File... paths) throws ClientException
Description copied from interface:ISVNReposTake an exclusive lock on each of the listed repositories to prevent commits; then, while holding all the locks, call the action.invoke(). The repositories may or may not be readable by Subversion while frozen, depending on implementation details of the repository's filesystem backend. Repositories are locked in the listed order.- Specified by:
freezein interfaceISVNRepos- Parameters:
action- describes the action to performpaths- the set of repository paths- Throws:
ClientException
-
-