Package org.eclipse.jgit.transport
Class TransportLocal.ForkLocalPushConnection
java.lang.Object
org.eclipse.jgit.transport.BaseConnection
org.eclipse.jgit.transport.BasePackConnection
org.eclipse.jgit.transport.BasePackPushConnection
org.eclipse.jgit.transport.TransportLocal.ForkLocalPushConnection
- All Implemented Interfaces:
AutoCloseable
,Connection
,PushConnection
- Enclosing class:
TransportLocal
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.transport.BasePackPushConnection
CAPABILITY_DELETE_REFS, CAPABILITY_OFS_DELTA, CAPABILITY_PUSH_OPTIONS, CAPABILITY_REPORT_STATUS, CAPABILITY_SIDE_BAND_64K
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 -
Method Summary
Methods inherited from class org.eclipse.jgit.transport.BasePackPushConnection
doPush, getPushOptions, noRepository, push, push
Methods inherited from class org.eclipse.jgit.transport.BasePackConnection
addUserAgentCapability, endOut, getCapability, getPeerUserAgent, getProtocolVersion, init, isCapableOf, lsRefs, 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
-
Field Details
-
receivePack
-
errorReaderThread
-
-
Constructor Details
-
ForkLocalPushConnection
ForkLocalPushConnection() throws TransportException- Throws:
TransportException
-
-
Method Details
-
close
public void close()Description copied from class:BasePackConnection
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 interfaceAutoCloseable
- Specified by:
close
in interfaceConnection
- Overrides:
close
in classBasePackConnection
-