Java Doc for SVNAdminClient.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » wc » admin » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core.wc.admin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tmatesoft.svn.core.wc.SVNBasicClient
      org.tmatesoft.svn.core.wc.admin.SVNAdminClient

SVNAdminClient
public class SVNAdminClient extends SVNBasicClient (Code)
The SVNAdminClient class provides methods that brings repository-side functionality and repository synchronizing features.

Repository administrative methods are analogues of the corresponding commands of the native Subversion 'svnadmin' utility, while repository synchronizing methods are the ones for the 'svnsync' utility.

Here's a list of the SVNAdminClient's methods matched against corresponing commands of the Subversion svnsync and svnadmin command-line utilities:
SVNKit Subversion
doInitialize()'svnsync initialize'
doSynchronize()'svnsync synchronize'
doCopyRevisionProperties()'svnsync copy-revprops'
doDump()'svnadmin dump'
doListTransactions()'svnadmin lstxns'
doLoad()'svnadmin load'
doRemoveTransactions()'svnadmin rmtxns'
doVerify()'svnadmin verify'

version:
   1.1.1
author:
   TMate Software Ltd.
since:
   1.1.0




Constructor Summary
public  SVNAdminClient(ISVNAuthenticationManager authManager, ISVNOptions options)
     Creates a new admin client.
public  SVNAdminClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)
     Creates a new admin client.

Method Summary
public  voiddoCompleteSynchronize(SVNURL fromURL, SVNURL toURL)
     Completely synchronizes two repositories.

This method initializes the destination repository and then copies all revision changes (including revision properties) from the given source repository to the destination one.

public  voiddoCopyRevisionProperties(SVNURL toURL, long revision)
     Copies revision properties from the source repository that the destination one is synchronized with to the given revision of the destination repository itself.

This method is equivalent to the command 'copy-revprops' of the native Subversion svnsync utility.

public  SVNURLdoCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force)
     Creates an FSFS-type repository. This implementation uses org.tmatesoft.svn.core.io.SVNRepositoryFactory.createLocalRepository(FileStringbooleanboolean) }.

If uuid is null a new uuid will be generated, otherwise the specified will be used.

If enableRevisionProperties is true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir.

public  SVNURLdoCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible)
     Creates an FSFS-type repository. This implementation uses org.tmatesoft.svn.core.io.SVNRepositoryFactory.createLocalRepository(FileStringbooleanboolean) }.

If uuid is null a new uuid will be generated, otherwise the specified will be used.

If enableRevisionProperties is true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir.

public  voiddoDump(File repositoryRoot, OutputStream dumpStream, SVNRevision startRevision, SVNRevision endRevision, boolean isIncremental, boolean useDeltas)
     Dumps contents of the repository to the provided output stream in a 'dumpfile' portable format.

On each revision dumped this method fires an SVNAdminEvent with action set to SVNAdminEventAction.REVISION_DUMPED to the registered ISVNAdminEventHandler (if any).

public  voiddoInitialize(SVNURL fromURL, SVNURL toURL)
     Initializes synchronization between source and target repositories.

This method is equivalent to the command 'initialize' ('init') of the native Subversion svnsync utility.

public  voiddoListLocks(File repositoryRoot)
    
public  voiddoListTransactions(File repositoryRoot)
     Lists all uncommitted transactions. On each uncommetted transaction found this method fires an SVNAdminEvent with action set to SVNAdminEventAction.TRANSACTION_LISTED to the registered ISVNAdminEventHandler (if any).
public  voiddoLoad(File repositoryRoot, InputStream dumpStream)
     Reads the provided dump stream committing new revisions to a repository.

On each revision loaded this method fires an SVNAdminEvent with action set to SVNAdminEventAction.REVISION_LOADED to the registered ISVNAdminEventHandler (if any).

public  voiddoLoad(File repositoryRoot, InputStream dumpStream, boolean usePreCommitHook, boolean usePostCommitHook, SVNUUIDAction uuidAction, String parentDir)
     Reads the provided dump stream committing new revisions to a repository.

On each revision loaded this method fires an SVNAdminEvent with action set to SVNAdminEventAction.REVISION_LOADED to the registered ISVNAdminEventHandler (if any).

public  voiddoRemoveLocks(File repositoryRoot, String[] paths)
    
public  voiddoRemoveTransactions(File repositoryRoot, String[] transactions)
     Removes the specified outstanding transactions from a repository. On each transaction removed this method fires an SVNAdminEvent with action set to SVNAdminEventAction.TRANSACTION_REMOVED to the registered ISVNAdminEventHandler (if any).
public  voiddoSynchronize(SVNURL toURL)
     Synchronizes the repository at the given url.

Synchronization means copying revision changes and revision properties from the source repository (that the destination one is synchronized with) to the destination one starting at the last merged revision.

public  voiddoVerify(File repositoryRoot)
     Verifies the data stored in the repository.
public  voiddoVerify(File repositoryRoot, SVNRevision startRevision, SVNRevision endRevision)
    
public  voidsetEventHandler(ISVNEventHandler handler)
     Sets an event handler for this object.
public  voidsetReplayHandler(ISVNLogEntryHandler handler)
     Sets a replication handler that will receive a log entry object per each replayed revision.

Log entries dispatched to the handler may not contain changed paths and committed log message until this features are implemented in future releases.



Constructor Detail
SVNAdminClient
public SVNAdminClient(ISVNAuthenticationManager authManager, ISVNOptions options)(Code)
Creates a new admin client.
Parameters:
  authManager - an auth manager
Parameters:
  options - an options driver



SVNAdminClient
public SVNAdminClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)(Code)
Creates a new admin client.
Parameters:
  repositoryPool - a repository pool
Parameters:
  options - an options driver




Method Detail
doCompleteSynchronize
public void doCompleteSynchronize(SVNURL fromURL, SVNURL toURL) throws SVNException(Code)
Completely synchronizes two repositories.

This method initializes the destination repository and then copies all revision changes (including revision properties) from the given source repository to the destination one. First it tries to use synchronization features similar to the native Subversion 'svnsync' capabilities. But if a server does not support replay functionality, SVNKit uses its own repository replication feature (see org.tmatesoft.svn.core.replicator.SVNRepositoryReplicator })
Parameters:
  fromURL - a url of a repository to copy from
Parameters:
  toURL - a destination repository url
throws:
  SVNException -
since:
   1.1




doCopyRevisionProperties
public void doCopyRevisionProperties(SVNURL toURL, long revision) throws SVNException(Code)
Copies revision properties from the source repository that the destination one is synchronized with to the given revision of the destination repository itself.

This method is equivalent to the command 'copy-revprops' of the native Subversion svnsync utility. Note that the destination repository given as toURL must be synchronized with a source repository. Please, see SVNAdminClient.doInitialize(SVNURL,SVNURL) } how to initialize such a synchronization.
Parameters:
  toURL - a url to the destination repository which must be synchronizedwith another repository
Parameters:
  revision - a particular revision of the source repository to copy revision propertiesfrom
throws:
  SVNException -
since:
   1.1, new in Subversion 1.4




doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force) throws SVNException(Code)
Creates an FSFS-type repository. This implementation uses org.tmatesoft.svn.core.io.SVNRepositoryFactory.createLocalRepository(FileStringbooleanboolean) }.

If uuid is null a new uuid will be generated, otherwise the specified will be used.

If enableRevisionProperties is true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to revision properties of the newly created repository.

If force is true and path already exists, deletes that path and creates a repository in its place.
Parameters:
  path - a repository root dir path
Parameters:
  uuid - a repository uuid
Parameters:
  enableRevisionProperties - enables/disables changes to revision properties
Parameters:
  force - forces operation to run a local URL (file:///) of a newly created repository
throws:
  SVNException -
See Also:   SVNAdminClient.doCreateRepository(File,String,boolean,boolean,boolean)
since:
   1.1.0




doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible) throws SVNException(Code)
Creates an FSFS-type repository. This implementation uses org.tmatesoft.svn.core.io.SVNRepositoryFactory.createLocalRepository(FileStringbooleanboolean) }.

If uuid is null a new uuid will be generated, otherwise the specified will be used.

If enableRevisionProperties is true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to revision properties of the newly created repository.

If force is true and path already exists, deletes that path and creates a repository in its place.

Set pre14Compatible to true if you want a new repository to be compatible with pre-1.4 servers.
Parameters:
  path - a repository root dir path
Parameters:
  uuid - a repository uuid
Parameters:
  enableRevisionProperties - enables/disables changes to revision properties
Parameters:
  force - forces operation to run
Parameters:
  pre14Compatible - true to create a repository with pre-1.4 format a local URL (file:///) of a newly created repository
throws:
  SVNException -
since:
   1.1.1




doDump
public void doDump(File repositoryRoot, OutputStream dumpStream, SVNRevision startRevision, SVNRevision endRevision, boolean isIncremental, boolean useDeltas) throws SVNException(Code)
Dumps contents of the repository to the provided output stream in a 'dumpfile' portable format.

On each revision dumped this method fires an SVNAdminEvent with action set to SVNAdminEventAction.REVISION_DUMPED to the registered ISVNAdminEventHandler (if any). To register your ISVNAdminEventHandler pass it to SVNAdminClient.setEventHandler(ISVNEventHandler) . For this operation the following information can be retrieved out of SVNAdminEvent :


Parameters:
  repositoryRoot - a repository root directory path
Parameters:
  dumpStream - an output stream to write dumped contents to
Parameters:
  startRevision - the first revision to start dumping from
Parameters:
  endRevision - the last revision to end dumping at
Parameters:
  isIncremental - if true then the first revision dumped will be a diff against the previous revision; otherwise the first revision is a fulltext.
Parameters:
  useDeltas - if true deltas will be written instead of fulltexts
throws:
  SVNException -
since:
   1.1.1



doInitialize
public void doInitialize(SVNURL fromURL, SVNURL toURL) throws SVNException(Code)
Initializes synchronization between source and target repositories.

This method is equivalent to the command 'initialize' ('init') of the native Subversion svnsync utility. Initialization places information of a source repository to a destination one (setting special revision properties in revision 0) as well as copies all revision props from revision 0 of the source repository to revision 0 of the destination one.
Parameters:
  fromURL - a source repository url
Parameters:
  toURL - a destination repository url
throws:
  SVNException -
since:
   1.1, new in Subversion 1.4




doListLocks
public void doListLocks(File repositoryRoot) throws SVNException(Code)



doListTransactions
public void doListTransactions(File repositoryRoot) throws SVNException(Code)
Lists all uncommitted transactions. On each uncommetted transaction found this method fires an SVNAdminEvent with action set to SVNAdminEventAction.TRANSACTION_LISTED to the registered ISVNAdminEventHandler (if any). To register your ISVNAdminEventHandler pass it to SVNAdminClient.setEventHandler(ISVNEventHandler) . For this operation the following information can be retrieved out of SVNAdminEvent :
Parameters:
  repositoryRoot - a repository root directory path
throws:
  SVNException -
since:
   1.1.1



doLoad
public void doLoad(File repositoryRoot, InputStream dumpStream) throws SVNException(Code)
Reads the provided dump stream committing new revisions to a repository.

On each revision loaded this method fires an SVNAdminEvent with action set to SVNAdminEventAction.REVISION_LOADED to the registered ISVNAdminEventHandler (if any). To register your ISVNAdminEventHandler pass it to SVNAdminClient.setEventHandler(ISVNEventHandler) . For this operation the following information can be retrieved out of SVNAdminEvent :

A call to this method is equivalent to doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null).
Parameters:
  repositoryRoot - the root directory path of the repository where new revisions will be committed
Parameters:
  dumpStream - stream with dumped contents of a repository
throws:
  SVNException -
See Also:   SVNAdminClient.doLoad(File,InputStream,boolean,boolean,SVNUUIDAction,String)
See Also:   
since:
   1.1.1




doLoad
public void doLoad(File repositoryRoot, InputStream dumpStream, boolean usePreCommitHook, boolean usePostCommitHook, SVNUUIDAction uuidAction, String parentDir) throws SVNException(Code)
Reads the provided dump stream committing new revisions to a repository.

On each revision loaded this method fires an SVNAdminEvent with action set to SVNAdminEventAction.REVISION_LOADED to the registered ISVNAdminEventHandler (if any). To register your ISVNAdminEventHandler pass it to SVNAdminClient.setEventHandler(ISVNEventHandler) . For this operation the following information can be retrieved out of SVNAdminEvent :


Parameters:
  repositoryRoot - the root directory path of the repository where new revisions will be committed
Parameters:
  dumpStream - stream with dumped contents of a repository
Parameters:
  usePreCommitHook - if true then calls a pre-commit hook before committing
Parameters:
  usePostCommitHook - if true then calls a post-commit hook after committing
Parameters:
  uuidAction - one of the three possible ways to treat uuids
Parameters:
  parentDir - if not null then loads at this directory in the repository
throws:
  SVNException -
since:
   1.1.1



doRemoveLocks
public void doRemoveLocks(File repositoryRoot, String[] paths) throws SVNException(Code)



doRemoveTransactions
public void doRemoveTransactions(File repositoryRoot, String[] transactions) throws SVNException(Code)
Removes the specified outstanding transactions from a repository. On each transaction removed this method fires an SVNAdminEvent with action set to SVNAdminEventAction.TRANSACTION_REMOVED to the registered ISVNAdminEventHandler (if any). To register your ISVNAdminEventHandler pass it to SVNAdminClient.setEventHandler(ISVNEventHandler) . For this operation the following information can be retrieved out of SVNAdminEvent :
Parameters:
  repositoryRoot - a repository root directory path
Parameters:
  transactions - an array with transaction names
throws:
  SVNException -
since:
   1.1.1



doSynchronize
public void doSynchronize(SVNURL toURL) throws SVNException(Code)
Synchronizes the repository at the given url.

Synchronization means copying revision changes and revision properties from the source repository (that the destination one is synchronized with) to the destination one starting at the last merged revision. This method is equivalent to the command 'synchronize' ('sync') of the native Subversion svnsync utility.
Parameters:
  toURL - a destination repository url
throws:
  SVNException -
since:
   1.1, new in Subversion 1.4




doVerify
public void doVerify(File repositoryRoot) throws SVNException(Code)
Verifies the data stored in the repository. This method uses the dump implementation (non incremental, beginning with revision 0, ending at the latest one) passing a dummy output stream to it. This allows to check the integrity of the repository data.
Parameters:
  repositoryRoot - a repository root directory path
throws:
  SVNException - verification failed - a repository may be corrupted
since:
   1.1.1



doVerify
public void doVerify(File repositoryRoot, SVNRevision startRevision, SVNRevision endRevision) throws SVNException(Code)



setEventHandler
public void setEventHandler(ISVNEventHandler handler)(Code)
Sets an event handler for this object. ISVNAdminEventHandler should be provided to SVNAdminClent via this method also.
Parameters:
  handler - an event handler



setReplayHandler
public void setReplayHandler(ISVNLogEntryHandler handler)(Code)
Sets a replication handler that will receive a log entry object per each replayed revision.

Log entries dispatched to the handler may not contain changed paths and committed log message until this features are implemented in future releases.
Parameters:
  handler - a replay handler




Methods inherited from org.tmatesoft.svn.core.wc.SVNBasicClient
public void checkCancelled() throws SVNCancelException(Code)(Java Doc)
protected SVNRepository createRepository(SVNURL url, boolean mayReuse) throws SVNException(Code)(Java Doc)
protected SVNRepository createRepository(SVNURL url, File path, SVNRevision pegRevision, SVNRevision revision) throws SVNException(Code)(Java Doc)
protected SVNRepository createRepository(SVNURL url, File path, SVNRevision pegRevision, SVNRevision revision, long[] pegRev) throws SVNException(Code)(Java Doc)
protected SVNWCAccess createWCAccess()(Code)(Java Doc)
protected SVNWCAccess createWCAccess(String pathPrefix)(Code)(Java Doc)
protected void dispatchEvent(SVNEvent event) throws SVNException(Code)(Java Doc)
protected void dispatchEvent(SVNEvent event, double progress) throws SVNException(Code)(Java Doc)
public ISVNDebugLog getDebugLog()(Code)(Java Doc)
protected ISVNEventHandler getEventDispatcher()(Code)(Java Doc)
protected SVNRepositoryLocation[] getLocations(SVNURL url, File path, SVNRepository repository, SVNRevision revision, SVNRevision start, SVNRevision end) throws SVNException(Code)(Java Doc)
public ISVNOptions getOptions()(Code)(Java Doc)
protected ISVNRepositoryPool getRepositoryPool()(Code)(Java Doc)
protected long getRevisionNumber(SVNRevision revision, SVNRepository repository, File path) throws SVNException(Code)(Java Doc)
protected SVNURL getURL(File path) throws SVNException(Code)(Java Doc)
public void handleEvent(SVNEvent event, double progress) throws SVNException(Code)(Java Doc)
public boolean isIgnoreExternals()(Code)(Java Doc)
public boolean isLeaveConflictsUnresolved()(Code)(Java Doc)
public void setDebugLog(ISVNDebugLog log)(Code)(Java Doc)
public void setEventHandler(ISVNEventHandler dispatcher)(Code)(Java Doc)
public void setEventPathPrefix(String prefix)(Code)(Java Doc)
public void setIgnoreExternals(boolean ignore)(Code)(Java Doc)
public void setLeaveConflictsUnresolved(boolean leave)(Code)(Java Doc)
public void setOptions(ISVNOptions options)(Code)(Java Doc)
protected void sleepForTimeStamp()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.