Top Description Fields Constructors Methods
org.eclipse.jgit.transport

public Class PushResult

extends OperationResult
Class Inheritance
Imports
java.util.Collection, .Collections, .Map

Result of push operation to the remote repository. Holding information of org.eclipse.jgit.transport.OperationResult and remote refs updates status.
See Also
Transport#push(org.eclipse.jgit.lib.ProgressMonitor, Collection)

Field Summary

Modifier and TypeField and Description
private Map<String, RemoteRefUpdate>
Inherited from org.eclipse.jgit.transport.OperationResult:
advertisedRefsmessageBufferpeerUserAgentupdatesuri

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public RemoteRefUpdate

Returns:

status of remote ref update
getRemoteUpdate
(String
remote ref name
refName
)

Get status of specific remote ref update by remote ref name.

public Collection<RemoteRefUpdate>

Returns:

collection of remote refs updates
getRemoteUpdates
()

Get status of remote refs updates.

pack-priv void
setRemoteUpdates(final Map<String, RemoteRefUpdate> remoteUpdates)

Inherited from org.eclipse.jgit.transport.OperationResult:
addaddMessagesgetAdvertisedRefgetAdvertisedRefsgetMessagesgetPeerUserAgentgetTrackingRefUpdategetTrackingRefUpdatesgetURIsetAdvertisedRefs

Field Detail

remoteUpdatesback to summary
private Map<String, RemoteRefUpdate> remoteUpdates

Constructor Detail

PushResultback to summary
public PushResult()

Method Detail

getRemoteUpdateback to summary
public RemoteRefUpdate getRemoteUpdate(String refName)

Get status of specific remote ref update by remote ref name. Together with getAdvertisedRef(String) it provide full description/status of this ref update.

Parameters
refName:String

remote ref name

Returns:RemoteRefUpdate

status of remote ref update

getRemoteUpdatesback to summary
public Collection<RemoteRefUpdate> getRemoteUpdates()

Get status of remote refs updates. Together with getAdvertisedRefs() it provides full description/status of each ref update.

Returned collection is not sorted in any order.

Returns:Collection<RemoteRefUpdate>

collection of remote refs updates

setRemoteUpdatesback to summary
pack-priv void setRemoteUpdates(final Map<String, RemoteRefUpdate> remoteUpdates)