class TransportLocal.ForkLocalPushConnection extends BasePackPushConnection
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Thread |
errorReaderThread |
private java.lang.Process |
receivePack |
CAPABILITY_DELETE_REFS, CAPABILITY_OFS_DELTA, CAPABILITY_PUSH_OPTIONS, CAPABILITY_REPORT_STATUS, CAPABILITY_SIDE_BAND_64KadditionalHaves, in, local, out, outNeedsEnd, pckIn, pckOut, statelessRPC, timeoutIn, timeoutOut, transport, uri| Constructor and Description |
|---|
ForkLocalPushConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
doPush, getPushOptions, noRepository, push, pushaddUserAgentCapability, endOut, getPeerUserAgent, init, isCapableOf, 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 receivePack
private java.lang.Thread errorReaderThread
ForkLocalPushConnection()
throws TransportException
TransportExceptionpublic void close()
BasePackConnectionClose 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 BasePackConnection