Package org.tigris.subversion.javahl
Class SVNAdmin
java.lang.Object
org.tigris.subversion.javahl.SVNAdmin
- Version:
- 1.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
interface to receive the messages -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Filesystem in a Berkeley DBprotected long
static final String
Filesystem in the filesystemprivate SVNClientImpl
private SVNAdminClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create a subversion repository.private static InputStream
createInputStream
(InputInterface dataIn) private static OutputStream
createOutputStream
(OutputInterface dataOut) void
deltify the revisions in the repositoryvoid
dispose()
void
dump
(String path, OutputInterface dataOut, OutputInterface errorOut, Revision start, Revision end, boolean incremental) dump the data in a repositoryvoid
dump
(String path, OutputInterface dataOut, OutputInterface errorOut, Revision start, Revision end, boolean incremental, boolean useDeltas) dump the data in a repositoryprotected SVNAdminClient
void
make a hot copy of the repositoryvoid
listDBLogs
(String path, SVNAdmin.MessageReceiver receiver) list all logfiles (BDB) in use or not)void
listUnusedDBLogs
(String path, SVNAdmin.MessageReceiver receiver) list unused logfilesvoid
load
(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath) void
load
(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) load the data of a dump into a repository,Lock[]
list all locks in the repositoryvoid
lstxns
(String path, SVNAdmin.MessageReceiver receiver) list all open transactions in a repositoryprivate void
private void
notImplementedYet
(String message) long
recover the berkeley db of a repository, returns youngest revisionvoid
remove multiple locks from the repositoryvoid
remove open transaction in a repositoryvoid
Deprecated.Use setRevProp() instead.private static void
setRevisionProperty
(String path, Revision rev, String propName, String propValue, boolean bypassPreRevPropChangeHook, boolean bypassPostRevPropChangeHook) void
setRevProp
(String path, Revision rev, String propName, String propValue, boolean usePreRevPropChangeHook, boolean usePostRevPropChangeHook) Change the value of the revision propertypropName
topropValue
.void
verify
(String path, OutputInterface messageOut, Revision start, Revision end) verify the repository
-
Field Details
-
cppAddr
protected long cppAddr -
myDelegate
-
mySVNAdminClient
-
BDB
Filesystem in a Berkeley DB- See Also:
-
FSFS
Filesystem in the filesystem- See Also:
-
-
Constructor Details
-
SVNAdmin
public SVNAdmin()
-
-
Method Details
-
dispose
public void dispose() -
getVersion
- Returns:
- Version information about the underlying native libraries.
-
getAdminClient
-
create
public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException create a subversion repository.- 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
deltify the revisions in the repository- Parameters:
path
- the path to the repositorystart
- start revisionend
- end revision- Throws:
ClientException
- throw in case of problem
-
dump
public void dump(String path, OutputInterface dataOut, OutputInterface errorOut, Revision start, Revision end, boolean incremental) throws ClientException dump the data in a repository- Parameters:
path
- the path to the repositorydataOut
- the data will be outputed hereerrorOut
- the messages will be outputed herestart
- the first revision to be dumpedend
- the last revision to be dumpedincremental
- the dump will be incremantal- Throws:
ClientException
- throw in case of problem
-
dump
public void dump(String path, OutputInterface dataOut, OutputInterface errorOut, Revision start, Revision end, boolean incremental, boolean useDeltas) throws ClientException dump the data in a repository- Parameters:
path
- the path to the repositorydataOut
- the data will be outputed hereerrorOut
- the messages 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 nodes- Throws:
ClientException
- throw in case of problem- Since:
- 1.5
-
hotcopy
make a hot copy of the repository- 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
-
listDBLogs
list all logfiles (BDB) in use or not)- Parameters:
path
- the path to the repositoryreceiver
- interface to receive the logfile names- Throws:
ClientException
- throw in case of problem
-
listUnusedDBLogs
list unused logfiles- Parameters:
path
- the path to the repositoryreceiver
- interface to receive the logfile names- Throws:
ClientException
- throw in case of problem
-
load
public void load(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) throws ClientException load the data of a dump into a repository,- Parameters:
path
- the path to the repositorydataInput
- the data input sourcemessageOutput
- the target for processing messagesignoreUUID
- ignore any UUID found in the input streamforceUUID
- set the repository UUID to any found in the streamrelativePath
- the directory in the repository, where the data in put optional.- Throws:
ClientException
- throw in case of problem
-
load
public void load(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath) throws ClientException - Throws:
ClientException
-
lstxns
list all open transactions in a repository- Parameters:
path
- the path to the repositoryreceiver
- receives one transaction name per call- Throws:
ClientException
- throw in case of problem
-
recover
recover the berkeley db of a repository, returns youngest revision- Parameters:
path
- the path to the repository- Throws:
ClientException
- throw in case of problem
-
rmtxns
remove open transaction in a repository- Parameters:
path
- the path to the repositorytransactions
- the transactions to be removed- Throws:
ClientException
- throw in case of problem
-
setLog
public void setLog(String path, Revision rev, String message, boolean bypassHooks) throws ClientException Deprecated.Use setRevProp() instead.set the log message of a revision- Parameters:
path
- the path to the repositoryrev
- the revision to be changedmessage
- the message to be setbypassHooks
- if to bypass all repository hooks- Throws:
ClientException
- throw in case of problem
-
setRevProp
public void setRevProp(String path, Revision rev, String propName, String propValue, boolean usePreRevPropChangeHook, boolean usePostRevPropChangeHook) throws SubversionException Change the value of the revision propertypropName
topropValue
. By default, does not run pre-/post-revprop-change hook scripts.- 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.- Since:
- 1.5.0
-
setRevisionProperty
private static void setRevisionProperty(String path, Revision rev, String propName, String propValue, boolean bypassPreRevPropChangeHook, boolean bypassPostRevPropChangeHook) throws SVNException - Throws:
SVNException
-
verify
public void verify(String path, OutputInterface messageOut, Revision start, Revision end) throws ClientException verify the repository- Parameters:
path
- the path to the repositorymessageOut
- the receiver of all messagesstart
- the first revisionend
- the last revision- Throws:
ClientException
- throw in case of problem
-
lslocks
list all locks in the repository- Parameters:
path
- the path to the repository- Throws:
ClientException
- throw in case of problem- Since:
- 1.2
-
rmlocks
remove multiple locks from the repository- Parameters:
path
- the path to the repositorylocks
- the name of the locked items- Throws:
ClientException
- throw in case of problem- Since:
- 1.2
-
createOutputStream
-
createInputStream
-
notImplementedYet
- Throws:
ClientException
-
notImplementedYet
- Throws:
ClientException
-