/** * Disposes this client object. * Call this method when you've finished working with this object. This will close * any open network sessions. */ public void dispose() { if (myRepositoryPool != null) { myRepositoryPool.dispose(); } }
/** * Sets operation's authentication manager. * If <code>repositoryPool</code> is set, set its authentication manager to this value. * * @param authenticationManager authentication manager */ public void setAuthenticationManager(ISVNAuthenticationManager authenticationManager) { this.authenticationManager = authenticationManager; if (repositoryPool != null) { repositoryPool.setAuthenticationManager(authenticationManager); } }
/** * Sets a canceller to this client manager. * This canceller will be used by all the <b>SVN*Client</b> objects provided by this client manager. * * @param canceller user's implementation of the canceller interface * @since 1.2.0 */ public void setCanceller(ISVNCanceller canceller) { if (myRepositoryPool != null) { myRepositoryPool.setCanceller(canceller); } }
protected SVNRepository createRepository(SVNURL url, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } repository.setDebugLog(getDebugLog()); return repository; }
myRepositoryPool.setDebugLog(log);
public void shutdownConnections(boolean shutdownAll) { if (myRepositoryPool != null) { myRepositoryPool.shutdownConnections(shutdownAll); } }
protected SVNRepository createRepository(SVNURL url, String uuid, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } if (uuid != null) { String reposUUID = repository.getRepositoryUUID(true); if (!uuid.equals(reposUUID)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_UUID_MISMATCH, "Repository UUID ''{0}'' doesn''t match expected UUID ''{1}''", new Object[] { reposUUID, uuid }); SVNErrorManager.error(err, SVNLogType.WC); } } repository.setDebugLog(getDebugLog()); repository.setCanceller(getEventDispatcher()); return repository; }
myRepositoryPool.setDebugLog(log);
protected SVNRepository createRepository(SVNURL url, String uuid, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } if (uuid != null) { String reposUUID = repository.getRepositoryUUID(true); if (!uuid.equals(reposUUID)) { SVNErrorMessage err = SVNErrorMessage .create( SVNErrorCode.RA_UUID_MISMATCH, "Repository UUID ''{0}'' doesn''t match expected UUID ''{1}''", new Object[] { reposUUID, uuid }); SVNErrorManager.error(err, SVNLogType.WC); } } repository.setDebugLog(getDebugLog()); repository.setCanceller(getEventDispatcher()); return repository; }
/** * @param shutdownAll * @deprecated use {@link #dispose()} instead */ public void shutdownConnections(boolean shutdownAll) { if (myRepositoryPool != null) { myRepositoryPool.dispose(); } }
/** * Sets an authentication manager to this client manager. * This authentication manager will be used by all the <b>SVN*Client</b> objects provided by * this client manager for authenticating the client side against the server side when needed (on demand) * or preliminarily (if specified). * * @param authManager user's implementation of the authentication manager interface */ public void setAuthenticationManager(ISVNAuthenticationManager authManager) { if (myRepositoryPool != null) { myRepositoryPool.setAuthenticationManager(authManager); } }
/** * Sets a canceller to this client manager. * This canceller will be used by all the <b>SVN*Client</b> objects provided by this client manager. * * @param canceller user's implementation of the canceller interface * @since 1.2.0 */ public void setCanceller(ISVNCanceller canceller) { if (myRepositoryPool != null) { myRepositoryPool.setCanceller(canceller); } }
myRepositoryPool.setDebugLog(log);
protected SVNRepository createRepository(SVNURL url, String uuid, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } if (uuid != null) { String reposUUID = repository.getRepositoryUUID(true); if (!uuid.equals(reposUUID)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_UUID_MISMATCH, "Repository UUID ''{0}'' doesn''t match expected UUID ''{1}''", new Object[] { reposUUID, uuid }); SVNErrorManager.error(err, SVNLogType.WC); } } repository.setDebugLog(getDebugLog()); repository.setCanceller(getEventDispatcher()); return repository; }
/** * @param shutdownAll * @deprecated use {@link #dispose()} instead */ public void shutdownConnections(boolean shutdownAll) { if (myRepositoryPool != null) { myRepositoryPool.dispose(); } }
/** * Sets an authentication manager to this client manager. * This authentication manager will be used by all the <b>SVN*Client</b> objects provided by * this client manager for authenticating the client side against the server side when needed (on demand) * or preliminarily (if specified). * * @param authManager user's implementation of the authentication manager interface */ public void setAuthenticationManager(ISVNAuthenticationManager authManager) { if (myRepositoryPool != null) { myRepositoryPool.setAuthenticationManager(authManager); } }
/** * Sets a canceller to this client manager. * This canceller will be used by all the <b>SVN*Client</b> objects provided by this client manager. * * @param canceller user's implementation of the canceller interface * @since 1.2.0 */ public void setCanceller(ISVNCanceller canceller) { if (myOperationFactory != null) { myOperationFactory.setCanceller(canceller); } else if (myRepositoryPool != null) { myRepositoryPool.setCanceller(canceller); } }
return myRepositoryPool.createRepository(url, mayReuse);
/** * Disposes this client object. * Call this method when you've finished working with this object. This will close * any open network sessions. */ public void dispose() { if (myRepositoryPool != null) { myRepositoryPool.dispose(); } }
/** * Sets an authentication manager to this client manager. * This authentication manager will be used by all the <b>SVN*Client</b> objects provided by * this client manager for authenticating the client side against the server side when needed (on demand) * or preliminarily (if specified). * * @param authManager user's implementation of the authentication manager interface */ public void setAuthenticationManager(ISVNAuthenticationManager authManager) { if (myOperationFactory != null) { myOperationFactory.setAuthenticationManager(authManager); } else if (myRepositoryPool != null) { myRepositoryPool.setAuthenticationManager(authManager); } }