Source Code Cross Referenced for ISVNRepositoryPool.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » wc » 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 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * ====================================================================
003:         * Copyright (c) 2004-2008 TMate Software Ltd.  All rights reserved.
004:         *
005:         * This software is licensed as described in the file COPYING, which
006:         * you should have received as part of this distribution.  The terms
007:         * are also available at http://svnkit.com/license.html
008:         * If newer versions of this license are posted there, you may use a
009:         * newer version instead, at your option.
010:         * ====================================================================
011:         */
012:        package org.tmatesoft.svn.core.wc;
013:
014:        import org.tmatesoft.svn.core.ISVNCanceller;
015:        import org.tmatesoft.svn.core.SVNException;
016:        import org.tmatesoft.svn.core.SVNURL;
017:        import org.tmatesoft.svn.core.auth.ISVNAuthenticationManager;
018:        import org.tmatesoft.svn.core.io.SVNRepository;
019:        import org.tmatesoft.svn.util.ISVNDebugLog;
020:
021:        /**
022:         * The <b>ISVNRepositoryPool</b> interface is used by 
023:         * <b>SVN</b>*<b>Client</b> objects to create a low-level SVN protocol
024:         * driver that allows them to directly work with a repository.
025:         * 
026:         * <p>
027:         * A default implementation of the <b>ISVNRepositoryPool</b> interface - 
028:         * <b>DefaultSVNRepositoryPool</b> class - may cache the created
029:         * <b>SVNRepository</b> objects in a common pool. Several threads may
030:         * share that pool, but each thread is able only to retrieve those objects,
031:         * that belong to it (were created in that thread). 
032:         * 
033:         * @version 1.1.1
034:         * @author  TMate Software Ltd.
035:         * @see     DefaultSVNRepositoryPool
036:         */
037:        public interface ISVNRepositoryPool {
038:
039:            /**
040:             * Updates authentication manager instance referenced by SVNRepository objects 
041:             * currently in the pool.
042:             */
043:            public void setAuthenticationManager(
044:                    ISVNAuthenticationManager authManager);
045:
046:            /**
047:             * Updates canceller instance referenced by SVNRepository objects 
048:             * currently in the pool.
049:             */
050:            public void setCanceller(ISVNCanceller canceller);
051:
052:            /**
053:             * Updates debug log instance referenced by SVNRepository objects 
054:             * currently in the pool.
055:             */
056:            public void setDebugLog(ISVNDebugLog log);
057:
058:            /**
059:             * Creates a low-level SVN protocol driver to access a repository.
060:             * 
061:             * <p>
062:             * If <code>mayReuse</code> is <span class="javakeyword">true</span>
063:             * and the pool feature for caching <b>SVNRepository</b> objects is supported
064:             * by the concrete implementation of this interface, then this method first 
065:             * tries to find an existing <b>SVNRepository</b> object 
066:             * in the pool of the current thread. If such an object is found that was
067:             * created for the same protocol as <code>url</code> has, then resets this 
068:             * object to a new <code>url</code> and returns it back. Otherwise creates
069:             * a new one, stores it in the thread's pool and returns back.
070:             * 
071:             * <p>
072:             * If <code>mayReuse</code> is <span class="javakeyword">false</span>, then
073:             * creates a new object, that won't be reusable.
074:             * 
075:             * @param  url            a repository location to establish a 
076:             *                        connection with (will be the root directory
077:             *                        for the working session)
078:             * @param  mayReuse       If <span class="javakeyword">true</span> then
079:             *                        retrieves/creates a reusable object, otherwise
080:             *                        creates a new unreusable one               
081:             * @return                a low-level API driver for direct interacting
082:             *                        with a repository
083:             * @throws SVNException   if <code>url</code> is malformed or there's
084:             *                        no appropriate implementation for a protocol
085:             * @see                   DefaultSVNRepositoryPool#createRepository(SVNURL, boolean)
086:             */
087:            public SVNRepository createRepository(SVNURL url, boolean mayReuse)
088:                    throws SVNException;
089:
090:            /**
091:             * Forces cached <b>SVNRepository</b> driver objects to close their socket 
092:             * connections. 
093:             * 
094:             * <p>
095:             * A default implementation <b>DefaultSVNRepositoryPool</b>
096:             * is able to cache <b>SVNRepository</b> objects in a common pool 
097:             * shared between multiple threads. This method allows to close
098:             * connections of all the cached objects.
099:             * 
100:             * @param shutdownAll if <span class="javakeyword">true</span> - closes
101:             *                    connections of all the <b>SVNRepository</b> objects,
102:             *                    if <span class="javakeyword">false</span> - connections
103:             *                    of only some part of <b>SVNRepository</b> objects (for example,
104:             *                    those, that are not needed anymore)
105:             * @see               DefaultSVNRepositoryPool
106:             * 
107:             * @deprecated use {@link #dispose()} method instead.
108:             */
109:            public void shutdownConnections(boolean shutdownAll);
110:
111:            public void dispose();
112:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.