Package org.eclipse.jgit.transport
Class PushResult
- java.lang.Object
-
- org.eclipse.jgit.transport.OperationResult
-
- org.eclipse.jgit.transport.PushResult
-
public class PushResult extends OperationResult
Result of push operation to the remote repository. Holding information ofOperationResult
and remote refs updates status.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,RemoteRefUpdate>
remoteUpdates
-
Fields inherited from class org.eclipse.jgit.transport.OperationResult
advertisedRefs, messageBuffer, peerUserAgent, updates, uri
-
-
Constructor Summary
Constructors Constructor Description PushResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteRefUpdate
getRemoteUpdate(java.lang.String refName)
Get status of specific remote ref update by remote ref name.java.util.Collection<RemoteRefUpdate>
getRemoteUpdates()
Get status of remote refs updates.(package private) void
setRemoteUpdates(java.util.Map<java.lang.String,RemoteRefUpdate> remoteUpdates)
-
Methods inherited from class org.eclipse.jgit.transport.OperationResult
add, addMessages, getAdvertisedRef, getAdvertisedRefs, getMessages, getPeerUserAgent, getTrackingRefUpdate, getTrackingRefUpdates, getURI, setAdvertisedRefs
-
-
-
-
Field Detail
-
remoteUpdates
private java.util.Map<java.lang.String,RemoteRefUpdate> remoteUpdates
-
-
Method Detail
-
getRemoteUpdates
public java.util.Collection<RemoteRefUpdate> getRemoteUpdates()
Get status of remote refs updates. Together withOperationResult.getAdvertisedRefs()
it provides full description/status of each ref update.Returned collection is not sorted in any order.
- Returns:
- collection of remote refs updates
-
getRemoteUpdate
public RemoteRefUpdate getRemoteUpdate(java.lang.String refName)
Get status of specific remote ref update by remote ref name. Together withOperationResult.getAdvertisedRef(String)
it provide full description/status of this ref update.- Parameters:
refName
- remote ref name- Returns:
- status of remote ref update
-
setRemoteUpdates
void setRemoteUpdates(java.util.Map<java.lang.String,RemoteRefUpdate> remoteUpdates)
-
-