Package org.eclipse.jgit.transport
Class TransportLocal.ForkLocalFetchConnection
- java.lang.Object
-
- org.eclipse.jgit.transport.BaseConnection
-
- org.eclipse.jgit.transport.BasePackConnection
-
- org.eclipse.jgit.transport.BasePackFetchConnection
-
- org.eclipse.jgit.transport.TransportLocal.ForkLocalFetchConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,Connection
,FetchConnection
- Enclosing class:
- TransportLocal
class TransportLocal.ForkLocalFetchConnection extends BasePackFetchConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.transport.BasePackFetchConnection
BasePackFetchConnection.FetchConfig
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Thread
errorReaderThread
private java.lang.Process
uploadPack
-
Fields inherited from class org.eclipse.jgit.transport.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, REACHABLE
-
Fields inherited from class org.eclipse.jgit.transport.BasePackConnection
additionalHaves, CAPABILITY_SYMREF_PREFIX, in, local, out, outNeedsEnd, pckIn, pckOut, statelessRPC, timeoutIn, timeoutOut, transport, uri
-
-
Constructor Summary
Constructors Constructor Description ForkLocalFetchConnection()
ForkLocalFetchConnection(java.util.Collection<RefSpec> refSpecs, java.lang.String... additionalPatterns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class org.eclipse.jgit.transport.BasePackFetchConnection
didFetchIncludeTags, didFetchTestConnectivity, doFetch, fetch, fetch, getFetchConfig, getPackLocks, onReceivePack, setPackLockMessage
-
Methods inherited from class org.eclipse.jgit.transport.BasePackConnection
addUserAgentCapability, endOut, getCapability, getPeerUserAgent, getProtocolVersion, init, isCapableOf, lsRefs, noRepository, readAdvertisedRefs, setProtocolVersion, updateWithSymRefs, wantCapability
-
Methods inherited from class org.eclipse.jgit.transport.BaseConnection
available, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jgit.transport.Connection
getMessages, getPeerUserAgent, getRef, getRefs, getRefsMap
-
-
-
-
Constructor Detail
-
ForkLocalFetchConnection
ForkLocalFetchConnection() throws TransportException
- Throws:
TransportException
-
ForkLocalFetchConnection
ForkLocalFetchConnection(java.util.Collection<RefSpec> refSpecs, java.lang.String... additionalPatterns) throws TransportException
- Throws:
TransportException
-
-
Method Detail
-
close
public void close()
Description copied from class:BasePackFetchConnection
Close 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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceConnection
- Overrides:
close
in classBasePackFetchConnection
-
-