Implementors of fetch over pack-based protocols should consider using
BasePackFetchConnection instead.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | didFetchIncludeTags()
Implements org. Did the last |
| protected abstract void | doFetch(final ProgressMonitor monitor, final Collection<Ref> want, final Set<ObjectId> have)
Implementation of |
| public final void | fetch(final ProgressMonitor
progress monitor to inform the end-user about the amount of
work completed, or to indicate cancellation. Implementations
should poll the monitor at regular intervals to look for
cancellation requests from the user. monitor, final Collection<Ref> one or more refs advertised by this connection that the caller
wants to store locally. want, final Set<ObjectId> additional objects known to exist in the destination
repository, especially if they aren't yet reachable by the ref
database. Connections should take this set as an addition to
what is reachable through all Refs, not in replace of it. have)Implements org. Fetch objects we don't have but that are reachable from advertised refs. |
| public final void | fetch(final ProgressMonitor
progress monitor to inform the end-user about the amount of
work completed, or to indicate cancellation. Implementations
should poll the monitor at regular intervals to look for
cancellation requests from the user. monitor, final Collection<Ref> one or more refs advertised by this connection that the caller
wants to store locally. want, final Set<ObjectId> additional objects known to exist in the destination
repository, especially if they aren't yet reachable by the ref
database. Connections should take this set as an addition to
what is reachable through all Refs, not in replace of it. have, OutputStream OutputStream to write sideband messages to out)Implements org. Fetch objects we don't have but that are reachable from advertised refs. |
| BaseFetchConnection | back to summary |
|---|---|
| pack-priv BaseFetchConnection() | |
| didFetchIncludeTags | back to summary |
|---|---|
| public boolean didFetchIncludeTags() Implements org. Doc from org. Did the last
Some Git aware transports are able to implicitly grab an annotated tag if
By returning only true/false (and not the actual list of tags obtained)
the transport itself does not need to be aware of whether or not tags
were included in the transfer.
Default implementation of
| |
| doFetch | back to summary |
|---|---|
| protected abstract void doFetch(final ProgressMonitor monitor, final Collection<Ref> want, final Set<ObjectId> have) throws TransportException Implementation of
| |
| fetch | back to summary |
|---|---|
| public final void fetch(final ProgressMonitor monitor, final Collection<Ref> want, final Set<ObjectId> have) throws TransportException Implements org. Doc from org. Fetch objects we don't have but that are reachable from advertised refs.
Only one call per connection is allowed. Subsequent calls will result in
Implementations are free to use network connections as necessary to
efficiently (for both client and server) transfer objects from the remote
repository into this repository. When possible implementations should
avoid replacing/overwriting/duplicating an object already available in
the local destination repository. Locally available objects and packs
should always be preferred over remotely available objects and packs.
| |
| fetch | back to summary |
|---|---|
| public final void fetch(final ProgressMonitor monitor, final Collection<Ref> want, final Set<ObjectId> have, OutputStream out) throws TransportException Implements org. Doc from org. Fetch objects we don't have but that are reachable from advertised refs.
Only one call per connection is allowed. Subsequent calls will result in
Implementations are free to use network connections as necessary to
efficiently (for both client and server) transfer objects from the remote
repository into this repository. When possible implementations should
avoid replacing/overwriting/duplicating an object already available in
the local destination repository. Locally available objects and packs
should always be preferred over remotely available objects and packs.
| |