|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.transport.OperationResult
public abstract class OperationResult
Class holding result of operation on remote repository. This includes refs advertised by remote repo and local tracking refs updates.
| Constructor Summary | |
|---|---|
OperationResult()
|
|
| Method Summary | |
|---|---|
Ref |
getAdvertisedRef(java.lang.String name)
Get a single advertised ref by name. |
java.util.Collection<Ref> |
getAdvertisedRefs()
Get the complete list of refs advertised by the remote. |
TrackingRefUpdate |
getTrackingRefUpdate(java.lang.String localName)
Get the status for a specific local tracking ref update. |
java.util.Collection<TrackingRefUpdate> |
getTrackingRefUpdates()
Get the status of all local tracking refs that were updated. |
URIish |
getURI()
Get the URI this result came from. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationResult()
| Method Detail |
|---|
public URIish getURI()
Each transport instance connects to at most one URI at any point in time.
public java.util.Collection<Ref> getAdvertisedRefs()
The returned refs may appear in any order. If the caller needs these to be sorted, they should be copied into a new array or List and then sorted by the caller as necessary.
public final Ref getAdvertisedRef(java.lang.String name)
The name supplied should be valid ref name. To get a peeled value for a
ref (aka refs/tags/v1.0^{}) use the base name (without
the ^{} suffix) and look at the peeled object id.
name - name of the ref to obtain.
public java.util.Collection<TrackingRefUpdate> getTrackingRefUpdates()
public TrackingRefUpdate getTrackingRefUpdate(java.lang.String localName)
localName - name of the local ref (e.g. "refs/remotes/origin/master").
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||