/** * Sets the given authentication instance to this pool and to all {@link SVNRepository} objects * stored in this pool. * * @param authManager authentication manager instance */ public void setAuthenticationManager(ISVNAuthenticationManager authManager) { myAuthManager = authManager; Map<String, SVNRepository> pool = getPool(); for (Iterator<String> protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setAuthenticationManager(myAuthManager); } }
/** * Sets a canceller to be used in all {@link SVNRepository} objects produced by this * pool. * * @param canceller caller's canceller * @since 1.1.4 */ public void setCanceller(ISVNCanceller canceller) { myCanceller = canceller; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setCanceller(canceller); } }
/** * Sets a canceller to be used in all {@link SVNRepository} objects produced by this * pool. * * @param canceller caller's canceller * @since 1.1.4 */ public void setCanceller(ISVNCanceller canceller) { myCanceller = canceller; Map<String, SVNRepository> pool = getPool(); for (Iterator<String> protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setCanceller(canceller); } }
/** * Sets the given authentication instance to this pool and to all {@link SVNRepository} objects * stored in this pool. * * @param authManager authentication manager instance */ public void setAuthenticationManager(ISVNAuthenticationManager authManager) { myAuthManager = authManager; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setAuthenticationManager(myAuthManager); } }
/** * Sets the given authentication instance to this pool and to all {@link SVNRepository} objects * stored in this pool. * * @param authManager authentication manager instance */ public void setAuthenticationManager(ISVNAuthenticationManager authManager) { myAuthManager = authManager; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setAuthenticationManager(myAuthManager); } }
/** * Sets a canceller to be used in all {@link SVNRepository} objects produced by this * pool. * * @param canceller caller's canceller * @since 1.1.4 */ public void setCanceller(ISVNCanceller canceller) { myCanceller = canceller; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setCanceller(canceller); } }
/** * Sets a debug logger to be used in all {@link SVNRepository} objects produced by this * pool. * * @param log debug logger * @since 1.1.4 */ public void setDebugLog(ISVNDebugLog log) { myDebugLog = log == null ? SVNDebugLog.getDefaultLog() : log; Map<String, SVNRepository> pool = getPool(); for (Iterator<String> protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setDebugLog(myDebugLog); } }
/** * Sets a debug logger to be used in all {@link SVNRepository} objects produced by this * pool. * * @param log debug logger * @since 1.1.4 */ public void setDebugLog(ISVNDebugLog log) { myDebugLog = log == null ? SVNDebugLog.getDefaultLog() : log; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setDebugLog(myDebugLog); } }
/** * Sets a debug logger to be used in all {@link SVNRepository} objects produced by this * pool. * * @param log debug logger * @since 1.1.4 */ public void setDebugLog(ISVNDebugLog log) { myDebugLog = log == null ? SVNDebugLog.getDefaultLog() : log; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setDebugLog(myDebugLog); } }
/** * Disposes this pool. Clears all inactive {@link SVNRepository} objects from this pool. * * @since 1.2.0 */ public void dispose() { synchronized (myInactiveRepositories) { myInactiveRepositories.clear(); myTimer = null; } Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.closeSession(); } myPool = null; synchronized (DefaultSVNRepositoryPool.class) { ourInstanceCount--; if (ourInstanceCount <= 0) { ourInstanceCount = 0; shutdownTimer(); } } }
/** * Disposes this pool. Clears all inactive {@link SVNRepository} objects from this pool. * * @since 1.2.0 */ public void dispose() { synchronized (myInactiveRepositories) { myInactiveRepositories.clear(); myTimer = null; } Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.closeSession(); } myPool = null; synchronized (DefaultSVNRepositoryPool.class) { ourInstanceCount--; if (ourInstanceCount <= 0) { ourInstanceCount = 0; shutdownTimer(); } } }
/** * Disposes this pool. Clears all inactive {@link SVNRepository} objects from this pool. * * @since 1.2.0 */ public void dispose() { synchronized (myInactiveRepositories) { myTimer = null; } shutdownInactiveRepositories(Long.MAX_VALUE); Map<String, SVNRepository> pool = getPool(); for (Iterator<String> protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = protocols.next(); SVNRepository repository = pool.get(key); repository.closeSession(); } myPool = null; synchronized (DefaultSVNRepositoryPool.class) { if (myScheduledTimeoutTask != null) { myScheduledTimeoutTask.cancel(false); myScheduledTimeoutTask = null; } ourInstanceCount--; if (ourInstanceCount <= 0) { ourInstanceCount = 0; shutdownTimer(); } } }
Map pool = getPool(); if (!mayReuse || pool == null) { repos = SVNRepositoryFactory.create(url, this);
Map pool = getPool(); if (!mayReuse || pool == null) { repos = SVNRepositoryFactory.create(url, this);
Map<String, SVNRepository> pool = getPool(); if (!mayReuse || pool == null) { repos = SVNRepositoryFactory.create(url, this);
Map pool = getPool(); if (!mayReuse || pool == null) { repos = SVNRepositoryFactory.create(url, this);