|
|||||||||
| 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 java.lang.String |
BDB
Filesystem in a Berkeley DB |
protected long |
cppAddr
slot for the adress of the native peer. |
static java.lang.String |
FSFS
Filesystem in the filesystem |
| Constructor Summary | |
|---|---|
SVNAdmin()
Standard empty contructor, builds just the native peer. |
|
| Method Summary | |
|---|---|
void |
create(java.lang.String path,
boolean disableFsyncCommit,
boolean keepLog,
java.lang.String configPath,
java.lang.String fstype)
create a subversion repository. |
void |
deltify(java.lang.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(java.lang.String path,
OutputInterface dataOut,
OutputInterface errorOut,
Revision start,
Revision end,
boolean incremental)
dump the data in a repository |
protected void |
finalize()
release the native peer (should use dispose instead) |
Version |
getVersion()
|
void |
hotcopy(java.lang.String path,
java.lang.String targetPath,
boolean cleanLogs)
make a hot copy of the repository |
void |
listDBLogs(java.lang.String path,
SVNAdmin.MessageReceiver receiver)
list all logfiles (BDB) in use or not) |
void |
listUnusedDBLogs(java.lang.String path,
SVNAdmin.MessageReceiver receiver)
list unused logfiles |
void |
load(java.lang.String path,
InputInterface dataInput,
OutputInterface messageOutput,
boolean ignoreUUID,
boolean forceUUID,
java.lang.String relativePath)
load the data of a dump into a repository, |
Lock[] |
lslocks(java.lang.String path)
list all locks in the repository |
void |
lstxns(java.lang.String path,
SVNAdmin.MessageReceiver receiver)
list all open transactions in a repository |
long |
recover(java.lang.String path)
recover the berkeley db of a repository, returns youngest revision |
void |
rmlocks(java.lang.String path,
java.lang.String[] locks)
remove multiple locks from the repository |
void |
rmtxns(java.lang.String path,
java.lang.String[] transactions)
remove open transaction in a repository |
void |
setLog(java.lang.String path,
Revision rev,
java.lang.String message,
boolean bypassHooks)
set the log message of a revision |
void |
verify(java.lang.String path,
OutputInterface messageOut,
Revision start,
Revision end)
verify the repository |
| 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 java.lang.String BDB
public static final java.lang.String FSFS
| Constructor Detail |
|---|
public SVNAdmin()
| Method Detail |
|---|
public void dispose()
protected void finalize()
finalize in class java.lang.Objectpublic Version getVersion()
public void create(java.lang.String path,
boolean disableFsyncCommit,
boolean keepLog,
java.lang.String configPath,
java.lang.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 problem
public void deltify(java.lang.String path,
Revision start,
Revision end)
throws ClientException
path - the path to the repositorystart - start revisionend - end revision
ClientException - throw in case of problem
public void dump(java.lang.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 problem
public void hotcopy(java.lang.String path,
java.lang.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 problem
public void listDBLogs(java.lang.String path,
SVNAdmin.MessageReceiver receiver)
throws ClientException
path - the path to the repositoryreceiver - interface to receive the logfile names
ClientException - throw in case of problem
public void listUnusedDBLogs(java.lang.String path,
SVNAdmin.MessageReceiver receiver)
throws ClientException
path - the path to the repositoryreceiver - interface to receive the logfile names
ClientException - throw in case of problem
public void load(java.lang.String path,
InputInterface dataInput,
OutputInterface messageOutput,
boolean ignoreUUID,
boolean forceUUID,
java.lang.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 problem
public void lstxns(java.lang.String path,
SVNAdmin.MessageReceiver receiver)
throws ClientException
path - the path to the repositoryreceiver - receives one transaction name per call
ClientException - throw in case of problem
public long recover(java.lang.String path)
throws ClientException
path - the path to the repository
ClientException - throw in case of problem
public void rmtxns(java.lang.String path,
java.lang.String[] transactions)
throws ClientException
path - the path to the repositorytransactions - the transactions to be removed
ClientException - throw in case of problem
public void setLog(java.lang.String path,
Revision rev,
java.lang.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 problem
public void verify(java.lang.String path,
OutputInterface messageOut,
Revision start,
Revision end)
throws ClientException
path - the path to the repositorymessageOut - the receiver of all messagesstart - the first revisionend - the last revision
ClientException - throw in case of problem
public Lock[] lslocks(java.lang.String path)
throws ClientException
path - the path to the repository
ClientException - throw in case of problem
public void rmlocks(java.lang.String path,
java.lang.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 | ||||||||