|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISVNRepos
Nested Class Summary | |
---|---|
static interface |
ISVNRepos.MessageReceiver
interface to receive the messages |
Field Summary | |
---|---|
static String |
BDB
Filesystem in a Berkeley DB |
static String |
FSFS
Filesystem in the filesystem |
Method Summary | |
---|---|
void |
cancelOperation()
cancel the active operation |
void |
create(File path,
boolean disableFsyncCommit,
boolean keepLog,
File configPath,
String fstype)
create a subversion repository. |
void |
deltify(File path,
Revision start,
Revision end)
deltify the revisions in the repository |
void |
dispose()
release the native peer (should not depend on finalize) |
void |
dump(File path,
OutputStream dataOut,
Revision start,
Revision end,
boolean incremental,
boolean useDeltas,
ReposNotifyCallback callback)
dump the data in a repository |
void |
freeze(ReposFreezeAction action,
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(). |
Version |
getVersion()
|
void |
hotcopy(File path,
File targetPath,
boolean cleanLogs)
|
void |
hotcopy(File path,
File targetPath,
boolean cleanLogs,
boolean incremental)
make a hot copy of the repository |
void |
listDBLogs(File path,
ISVNRepos.MessageReceiver receiver)
list all logfiles (BDB) in use or not) |
void |
listUnusedDBLogs(File path,
ISVNRepos.MessageReceiver receiver)
list unused logfiles |
void |
load(File path,
InputStream dataInput,
boolean ignoreUUID,
boolean forceUUID,
boolean usePreCommitHook,
boolean usePostCommitHook,
String relativePath,
ReposNotifyCallback callback)
load the data of a dump into a repository |
void |
load(File path,
InputStream dataInput,
Revision start,
Revision end,
boolean ignoreUUID,
boolean forceUUID,
boolean usePreCommitHook,
boolean usePostCommitHook,
String relativePath,
ReposNotifyCallback callback)
load the data of a dump into a repository |
Set<Lock> |
lslocks(File path,
Depth depth)
list all locks in the repository |
void |
lstxns(File path,
ISVNRepos.MessageReceiver receiver)
list all open transactions in a repository |
void |
pack(File path,
ReposNotifyCallback callback)
pack the repository |
long |
recover(File path,
ReposNotifyCallback callback)
recover the filesystem backend of a repository |
void |
rmlocks(File path,
String[] locks)
remove multiple locks from the repository |
void |
rmtxns(File path,
String[] transactions)
remove open transaction in a repository |
void |
setRevProp(File path,
Revision rev,
String propName,
String propValue,
boolean usePreRevPropChangeHook,
boolean usePostRevPropChangeHook)
Change the value of the revision property propName
to propValue . |
void |
upgrade(File path,
ReposNotifyCallback callback)
upgrade the repository format |
void |
verify(File path,
Revision start,
Revision end,
ReposNotifyCallback callback)
Verify the repository at path between revisions
start and end . |
Field Detail |
---|
static final String BDB
static final String FSFS
Method Detail |
---|
void dispose()
Version getVersion()
void create(File path, boolean disableFsyncCommit, boolean keepLog, File 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 problemvoid deltify(File path, Revision start, Revision end) throws ClientException
path
- the path to the repositorystart
- start revisionend
- end revision
ClientException
- throw in case of problemvoid dump(File path, OutputStream dataOut, Revision start, Revision end, boolean incremental, boolean useDeltas, ReposNotifyCallback callback) throws ClientException
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
ClientException
- throw in case of problemvoid hotcopy(File path, File targetPath, boolean cleanLogs, boolean incremental) 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 problemvoid hotcopy(File path, File targetPath, boolean cleanLogs) throws ClientException
ClientException
void listDBLogs(File path, ISVNRepos.MessageReceiver receiver) throws ClientException
path
- the path to the repositoryreceiver
- interface to receive the logfile names
ClientException
- throw in case of problemvoid listUnusedDBLogs(File path, ISVNRepos.MessageReceiver receiver) throws ClientException
path
- the path to the repositoryreceiver
- interface to receive the logfile names
ClientException
- throw in case of problemvoid load(File path, InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath, ReposNotifyCallback callback) throws ClientException
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
ClientException
- throw in case of problemvoid load(File path, InputStream dataInput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath, ReposNotifyCallback callback) throws ClientException
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
ClientException
- throw in case of problemvoid lstxns(File path, ISVNRepos.MessageReceiver receiver) throws ClientException
path
- the path to the repositoryreceiver
- receives one transaction name per call
ClientException
- throw in case of problemlong recover(File path, ReposNotifyCallback callback) throws ClientException
path
- the path to the repository
ClientException
- throw in case of problemvoid freeze(ReposFreezeAction action, File... paths) throws ClientException
action
- describes the action to performpaths
- the set of repository paths
ClientException
void rmtxns(File path, String[] transactions) throws ClientException
path
- the path to the repositorytransactions
- the transactions to be removed
ClientException
- throw in case of problemvoid setRevProp(File 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.void verify(File path, Revision start, Revision end, ReposNotifyCallback callback) throws ClientException
path
between revisions
start
and end
.
path
- the path to the repositorystart
- the first revisionend
- the last revisioncallback
- the callback to recieve notifications
ClientException
- If an error occurred.Set<Lock> lslocks(File path, Depth depth) throws ClientException
path
- the path to the repositorydepth
- the depth to recurse
ClientException
- throw in case of problemvoid rmlocks(File path, String[] locks) throws ClientException
path
- the path to the repositorylocks
- the name of the locked items
ClientException
- throw in case of problemvoid upgrade(File path, ReposNotifyCallback callback) throws ClientException
path
- the path to the repositorycallback
- for notification
ClientException
- throw in case of problemvoid pack(File path, ReposNotifyCallback callback) throws ClientException
path
- the path to the repositorycallback
- for notification
ClientException
- throw in case of problemvoid cancelOperation() throws ClientException
ClientException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |