|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.subversion.javahl.SVNAdmin
public class SVNAdmin
This class offers the same commands as the svnadmin commandline client.
Nested Class Summary | |
---|---|
static interface |
SVNAdmin.MessageReceiver
interface to receive the messages |
Field Summary | |
---|---|
static String |
BDB
Filesystem in a Berkeley DB |
protected long |
cppAddr
slot for the adress of the native peer. |
static String |
FSFS
Filesystem in the filesystem |
Constructor Summary | |
---|---|
SVNAdmin()
Standard empty constructor, builds just the native peer. |
Method Summary | |
---|---|
void |
create(String path,
boolean disableFsyncCommit,
boolean keepLog,
String configPath,
String fstype)
create a subversion repository. |
void |
deltify(String path,
Revision start,
Revision end)
deltify the revisions in the repository |
void |
dispose()
release the native peer (should not depend on finalize) |
void |
dump(String path,
OutputInterface dataOut,
OutputInterface errorOut,
Revision start,
Revision end,
boolean incremental)
dump the data in a repository |
void |
dump(String path,
OutputInterface dataOut,
OutputInterface errorOut,
Revision start,
Revision end,
boolean incremental,
boolean useDeltas)
dump the data in a repository |
protected void |
finalize()
release the native peer (should use dispose instead) |
Version |
getVersion()
|
void |
hotcopy(String path,
String targetPath,
boolean cleanLogs)
make a hot copy of the repository |
void |
listDBLogs(String path,
SVNAdmin.MessageReceiver receiver)
list all logfiles (BDB) in use or not) |
void |
listUnusedDBLogs(String path,
SVNAdmin.MessageReceiver receiver)
list unused logfiles |
void |
load(String path,
InputInterface dataInput,
OutputInterface messageOutput,
boolean ignoreUUID,
boolean forceUUID,
boolean usePreCommitHook,
boolean usePostCommitHook,
String relativePath)
load the data of a dump into a repository, |
void |
load(String path,
InputInterface dataInput,
OutputInterface messageOutput,
boolean ignoreUUID,
boolean forceUUID,
String relativePath)
load the data of a dump into a repository, |
Lock[] |
lslocks(String path)
list all locks in the repository |
void |
lstxns(String path,
SVNAdmin.MessageReceiver receiver)
list all open transactions in a repository |
long |
recover(String path)
recover the berkeley db of a repository, returns youngest revision |
void |
rmlocks(String path,
String[] locks)
remove multiple locks from the repository |
void |
rmtxns(String path,
String[] transactions)
remove open transaction in a repository |
void |
setLog(String path,
Revision rev,
String message,
boolean bypassHooks)
Deprecated. Use setRevProp() instead. |
void |
setRevProp(String path,
Revision rev,
String propName,
String propValue,
boolean usePreRevPropChangeHook,
boolean usePostRevPropChangeHook)
Change the value of the revision property propName
to propValue . |
void |
verify(String path,
OutputInterface messageOut,
Revision start,
Revision end)
Verify the repository at path between revisions
start and end . |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long cppAddr
public static final String BDB
public static final String FSFS
Constructor Detail |
---|
public SVNAdmin()
Method Detail |
---|
public void dispose()
protected void finalize()
finalize
in class Object
public Version getVersion()
public void create(String path, boolean disableFsyncCommit, boolean keepLog, String configPath, String fstype) throws ClientException
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)
ClientException
- throw in case of problempublic void deltify(String path, Revision start, Revision end) throws ClientException
path
- the path to the repositorystart
- start revisionend
- end revision
ClientException
- throw in case of problempublic void dump(String path, OutputInterface dataOut, OutputInterface errorOut, Revision start, Revision end, boolean incremental) throws ClientException
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
ClientException
- throw in case of problempublic void dump(String path, OutputInterface dataOut, OutputInterface errorOut, Revision start, Revision end, boolean incremental, boolean useDeltas) throws ClientException
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
ClientException
- throw in case of problempublic void hotcopy(String path, String targetPath, boolean cleanLogs) throws ClientException
path
- the path to the source repositorytargetPath
- the path to the target repositorycleanLogs
- clean the unused log files in the source
repository
ClientException
- throw in case of problempublic void listDBLogs(String path, SVNAdmin.MessageReceiver receiver) throws ClientException
path
- the path to the repositoryreceiver
- interface to receive the logfile names
ClientException
- throw in case of problempublic void listUnusedDBLogs(String path, SVNAdmin.MessageReceiver receiver) throws ClientException
path
- the path to the repositoryreceiver
- interface to receive the logfile names
ClientException
- throw in case of problempublic void load(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) throws ClientException
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.
ClientException
- throw in case of problempublic void load(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath) throws ClientException
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
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.
ClientException
- throw in case of problempublic void lstxns(String path, SVNAdmin.MessageReceiver receiver) throws ClientException
path
- the path to the repositoryreceiver
- receives one transaction name per call
ClientException
- throw in case of problempublic long recover(String path) throws ClientException
path
- the path to the repository
ClientException
- throw in case of problempublic void rmtxns(String path, String[] transactions) throws ClientException
path
- the path to the repositorytransactions
- the transactions to be removed
ClientException
- throw in case of problempublic void setLog(String path, Revision rev, String message, boolean bypassHooks) throws ClientException
path
- the path to the repositoryrev
- the revision to be changedmessage
- the message to be setbypassHooks
- if to bypass all repository hooks
ClientException
- throw in case of problempublic void setRevProp(String path, Revision rev, String propName, String propValue, boolean usePreRevPropChangeHook, boolean usePostRevPropChangeHook) throws SubversionException
propName
to propValue
. By default, does not run
pre-/post-revprop-change hook scripts.
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.
SubversionException
- If a problem occurs.public void verify(String path, OutputInterface messageOut, Revision start, Revision end) throws ClientException
path
between revisions
start
and end
.
path
- the path to the repositorymessageOut
- the receiver of all messagesstart
- the first revisionend
- the last revision
ClientException
- If an error occurred.public Lock[] lslocks(String path) throws ClientException
path
- the path to the repository
ClientException
- throw in case of problempublic void rmlocks(String path, String[] locks) throws ClientException
path
- the path to the repositorylocks
- the name of the locked items
ClientException
- throw in case of problem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |