TransportBundle
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InputStream | |
| private String | |
| private PackLock | |
| pack-priv final Map | |
| private final Transport |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract org. Implements org. Closes this resource, relinquishing any underlying resources. |
| public boolean | didFetchTestConnectivity()
Implements org. Did the last |
| protected void | doFetch(final ProgressMonitor monitor, final Collection<Ref> want, final Set<ObjectId> have)
Implements abstract org. Implementation of |
| private PackProtocolException | |
| public Collection | getPackLocks()
Implements org. All locks created by the last
|
| private void | |
| private String | |
| private int | |
| public void | setPackLockMessage(String
message to use when holding a pack in place. message)Implements org. Set the lock message used when holding a pack out of garbage collection. |
| private void |
| bin | back to summary |
|---|---|
| pack-priv InputStream bin | |
| lockMessage | back to summary |
|---|---|
| private String lockMessage | |
| packLock | back to summary |
|---|---|
| private PackLock packLock | |
| prereqs | back to summary |
|---|---|
| pack-priv final Map<ObjectId, String> prereqs | |
| transport | back to summary |
|---|---|
| private final Transport transport | |
| BundleFetchConnection | back to summary |
|---|---|
| pack-priv BundleFetchConnection(Transport transportBundle, InputStream src) throws TransportException | |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Implements org. Doc from org. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
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
| |
| didFetchTestConnectivity | back to summary |
|---|---|
| public boolean didFetchTestConnectivity() Implements org. Doc from org. Did the last Some transports walk the object graph on the client side, with the client looking for what objects it is missing and requesting them individually from the remote peer. By virtue of completing the fetch call the client implicitly tested the object connectivity, as every object in the graph was either already local or was requested successfully from the peer. In such transports this method returns true. Some transports assume the remote peer knows the Git object graph and is able to supply a fully connected graph to the client (although it may only be transferring the parts the client does not yet have). Its faster to assume such remote peers are well behaved and send the correct response to the client. In such transports this method returns false.
| |
| doFetch | back to summary |
|---|---|
| protected void doFetch(final ProgressMonitor monitor, final Collection<Ref> want, final Set<ObjectId> have) throws TransportException Implements abstract org. Doc from org. Implementation of
| |
| duplicateAdvertisement | back to summary |
|---|---|
| private PackProtocolException duplicateAdvertisement(String name) | |
| getPackLocks | back to summary |
|---|---|
| public Collection Implements org. Doc from org. All locks created by the last
| |
| readBundleV2 | back to summary |
|---|---|
| private void readBundleV2() throws IOException | |
| readLine | back to summary |
|---|---|
| private String readLine(byte[] hdrbuf) throws IOException | |
| readSignature | back to summary |
|---|---|
| private int readSignature() throws IOException | |
| setPackLockMessage | back to summary |
|---|---|
| public void setPackLockMessage(String message) Implements org. Doc from org. Set the lock message used when holding a pack out of garbage collection.
Callers that set a lock message must ensure they call
| |
| verifyPrerequisites | back to summary |
|---|---|
| private void verifyPrerequisites() throws TransportException | |