class TransportLocal.ForkLocalFetchConnection extends BasePackFetchConnection
BasePackFetchConnection.FetchConfig| Modifier and Type | Field and Description |
|---|---|
private java.lang.Thread |
errorReaderThread |
private java.lang.Process |
uploadPack |
ADVERTISED, COMMON, MIN_CLIENT_BUFFER, OPTION_ALLOW_REACHABLE_SHA1_IN_WANT, OPTION_ALLOW_TIP_SHA1_IN_WANT, 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, REACHABLEadditionalHaves, in, local, out, outNeedsEnd, pckIn, pckOut, statelessRPC, timeoutIn, timeoutOut, transport, uri| Constructor and Description |
|---|
ForkLocalFetchConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
didFetchIncludeTags, didFetchTestConnectivity, doFetch, fetch, fetch, getFetchConfig, getPackLocks, onReceivePack, setPackLockMessageaddUserAgentCapability, endOut, getPeerUserAgent, init, isCapableOf, noRepository, readAdvertisedRefs, wantCapabilityavailable, getMessages, getMessageWriter, getRef, getRefs, getRefsMap, markStartedOperation, setMessageWriter, setPeerUserAgentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessages, getPeerUserAgent, getRef, getRefs, getRefsMapprivate java.lang.Process uploadPack
private java.lang.Thread errorReaderThread
ForkLocalFetchConnection()
throws TransportException
TransportExceptionpublic void close()
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 throws Exception.
Implementers shouldn't throw checked exceptions. This override narrows
the signature to prevent them from doing so.
close in interface java.lang.AutoCloseableclose in interface Connectionclose in class BasePackFetchConnection