Class TransportGitSsh.SshFetchConnection
java.lang.Object
org.eclipse.jgit.transport.BaseConnection
org.eclipse.jgit.transport.BasePackConnection
org.eclipse.jgit.transport.BasePackFetchConnection
org.eclipse.jgit.transport.TransportGitSsh.SshFetchConnection
- All Implemented Interfaces:
AutoCloseable, Connection, FetchConnection
- Enclosing class:
TransportGitSsh
-
Nested Class Summary
Nested classes/interfaces inherited from class BasePackFetchConnection
BasePackFetchConnection.FetchConfig -
Field Summary
FieldsFields inherited from class BasePackFetchConnection
ADVERTISED, COMMON, MIN_CLIENT_BUFFER, OPTION_ALLOW_REACHABLE_SHA1_IN_WANT, OPTION_ALLOW_TIP_SHA1_IN_WANT, OPTION_FILTER, OPTION_INCLUDE_TAG, OPTION_MULTI_ACK, OPTION_MULTI_ACK_DETAILED, OPTION_NO_DONE, OPTION_NO_PROGRESS, OPTION_OFS_DELTA, OPTION_SHALLOW, OPTION_SIDE_BAND, OPTION_SIDE_BAND_64K, OPTION_THIN_PACK, REACHABLEFields inherited from class BasePackConnection
additionalHaves, CAPABILITY_SYMREF_PREFIX, in, local, out, outNeedsEnd, pckIn, pckOut, statelessRPC, timeoutIn, timeoutOut, transport, uri -
Constructor Summary
ConstructorsConstructorDescriptionSshFetchConnection(Collection<RefSpec> refSpecs, String... additionalPatterns) -
Method Summary
Methods inherited from class BasePackFetchConnection
didFetchIncludeTags, didFetchTestConnectivity, doFetch, fetch, fetch, getFetchConfig, getPackLocks, onReceivePack, setPackLockMessageMethods inherited from class BasePackConnection
addUserAgentCapability, endOut, getCapability, getPeerUserAgent, getProtocolVersion, init, isCapableOf, lsRefs, noRepository, readAdvertisedRefs, setProtocolVersion, updateWithSymRefs, wantCapabilityMethods inherited from class BaseConnection
available, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Connection
getMessages, getPeerUserAgent, getRef, getRefs, getRefsMap
-
Field Details
-
process
-
errorThread
-
-
Constructor Details
-
SshFetchConnection
SshFetchConnection() throws TransportException- Throws:
TransportException
-
SshFetchConnection
SshFetchConnection(Collection<RefSpec> refSpecs, String... additionalPatterns) throws TransportException - Throws:
TransportException
-
-
Method Details
-
close
public void close()Description copied from class:BasePackFetchConnectionClose any resources used by this connection.
If the remote repository is contacted by a network socket this method must close that network socket, disconnecting the two peers. If the remote repository is actually local (same system) this method must close any open file handles used to read the "remote" repository.
If additional messages were produced by the remote peer, these should still be retained in the connection instance for
Connection.getMessages().AutoClosable.close()declares that it throwsException. Implementers shouldn't throw checked exceptions. This override narrows the signature to prevent them from doing so.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnection- Overrides:
closein classBasePackFetchConnection
-