public boolean isConnected(SVNRepositoryImpl repos) throws SVNException { return mySession != null && !isStale(); }
public void dispose() { if (shouldDisposeSvnOperationsFactory && svnOperationFactory != null) { svnOperationFactory.dispose(); } synchronized (SVNClientImpl.class) { instanceCount--; if (instanceCount <= 0) { instanceCount = 0; SVNSSHConnector.shutdown(); } } }
public ISVNConnector createConnector(SVNRepository repository) throws SVNException { SVNURL location = repository.getLocation(); if ("svn+ssh".equals(location.getProtocol())) { return new SVNSSHConnector(); } else if (location.getProtocol().startsWith("svn+")) { String name = location.getProtocol().substring("svn+".length()); if (repository.getTunnelProvider() != null) { ISVNConnector connector = repository.getTunnelProvider().createTunnelConnector(location); if (connector != null) { return connector; } } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.EXTERNAL_PROGRAM, "Cannot find tunnel specification for ''{0}''", name); SVNErrorManager.error(err, SVNLogType.NETWORK); } return new SVNPlainConnector(); } };
close(repository); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_CONNECTION_CLOSED, "Cannot connect to ''{0}'': {1}", new Object[] {repository.getLocation().setPath("", false), e.getMessage()}); SVNErrorManager.error(err, e, SVNLogType.NETWORK);
public ISVNConnector createConnector(SVNRepository repository) throws SVNException { SVNURL location = repository.getLocation(); if ("svn+ssh".equals(location.getProtocol())) { return new SVNSSHConnector(); } else if (location.getProtocol().startsWith("svn+")) { String name = location.getProtocol().substring("svn+".length()); if (repository.getTunnelProvider() != null) { ISVNConnector connector = repository.getTunnelProvider().createTunnelConnector(location); if (connector != null) { return connector; } } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.EXTERNAL_PROGRAM, "Cannot find tunnel specification for ''{0}''", name); SVNErrorManager.error(err, SVNLogType.NETWORK); } return new SVNPlainConnector(); } };
close(repository); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_CONNECTION_CLOSED, "Cannot connect to ''{0}'': {1}", new Object[] {repository.getLocation().setPath("", false), e.getMessage()}); SVNErrorManager.error(err, e, SVNLogType.NETWORK);
public boolean isConnected(SVNRepositoryImpl repos) throws SVNException { return mySession != null && !isStale(); }
public ISVNConnector createConnector(SVNRepository repository) throws SVNException { SVNURL location = repository.getLocation(); if ("svn+ssh".equals(location.getProtocol())) { return new SVNSSHConnector(); } else if (location.getProtocol().startsWith("svn+")) { String name = location.getProtocol().substring("svn+".length()); if (repository.getTunnelProvider() != null) { ISVNConnector connector = repository.getTunnelProvider().createTunnelConnector(location); if (connector != null) { return connector; } } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.EXTERNAL_PROGRAM, "Cannot find tunnel specification for ''{0}''", name); SVNErrorManager.error(err, SVNLogType.NETWORK); } return new SVNPlainConnector(); } };
close(repository); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_CONNECTION_CLOSED, "Cannot connect to ''{0}'': {1}", new Object[] {repository.getLocation().setPath("", false), e.getMessage()}); SVNErrorManager.error(err, e, SVNLogType.NETWORK);
public void dispose() { if (myClientManager != null) { myClientManager.dispose(); myClientManager = null; } synchronized (SVNClientImpl.class) { ourInstanceCount--; if (ourInstanceCount <= 0) { ourInstanceCount = 0; SVNSSHConnector.shutdown(); } } }
public boolean isConnected(SVNRepositoryImpl repos) throws SVNException { return mySession != null && !isStale(); }