com.microsoft.tfs.core.clients.versioncontrol
Class GetStatus

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.GetStatus

public final class GetStatus
extends java.lang.Object

Contains the status of a get operation that has completed.

Since:
TEE-SDK-10.1
Thread-safety:
thread-compatible

Constructor Summary
GetStatus()
           
 
Method Summary
 void addFailure(Failure failure)
          Adds a failure.
 void combine(GetStatus getStatus)
          Combining the status from 2 Get calls.
 void decrementNumOperations()
           
 Failure[] getFailures()
          Get the failures generated by this invocation of get.
 int getNumConflicts()
           
 int getNumFailures()
           
 int getNumOperations()
           
 int getNumResolvedConflicts()
           
 int getNumUpdated()
           
 int getNumWarnings()
           
 boolean haveResolvableWarnings()
           
 void incrementNumConflicts()
           
 void incrementNumResolvedConflicts()
           
 void incrementNumUpdated()
           
 void incrementNumWarnings()
           
 boolean isCanceled()
           
 boolean isNoActionNeeded()
          When true, Get() had nothing to do (server returned no operations and no failures).
 void setCanceled(boolean canceled)
           
 void setHaveResolvableWarnings(boolean value)
           
 void setNumConflicts(int value)
           
 void setNumOperations(int value)
           
 void setNumResolvedConflicts(int numResolvedConflicts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetStatus

public GetStatus()
Method Detail

combine

public void combine(GetStatus getStatus)
Combining the status from 2 Get calls.


getFailures

public Failure[] getFailures()
Get the failures generated by this invocation of get.


addFailure

public void addFailure(Failure failure)
Adds a failure.

Parameters:
failure - the failure to add (must not be null)

getNumFailures

public int getNumFailures()
Returns:
normally this is the number of failures returned by the server. If Get() is called with one or more items specified and they all fail to be valid local paths in the same workspace, this will be set to the number of items passed in (in that case, the server was never called).

getNumOperations

public int getNumOperations()
Returns:
the number of operations returned by the server. If the server returned no operations and no failures, everything was already up to date.

setNumOperations

public void setNumOperations(int value)

decrementNumOperations

public void decrementNumOperations()

getNumConflicts

public int getNumConflicts()
Returns:
The number of conflicts encountered by get.

incrementNumConflicts

public void incrementNumConflicts()

setNumConflicts

public void setNumConflicts(int value)

getNumUpdated

public int getNumUpdated()
Returns:
the number of operations which updated the workspace.

incrementNumUpdated

public void incrementNumUpdated()

getNumWarnings

public int getNumWarnings()
Returns:
the number of warnings encountered by get.

incrementNumWarnings

public void incrementNumWarnings()

getNumResolvedConflicts

public int getNumResolvedConflicts()
Returns:
the number of conflicts resolved (by auto resolve or manual resolve)

setNumResolvedConflicts

public void setNumResolvedConflicts(int numResolvedConflicts)

incrementNumResolvedConflicts

public void incrementNumResolvedConflicts()

isNoActionNeeded

public boolean isNoActionNeeded()
When true, Get() had nothing to do (server returned no operations and no failures).

Returns:
True when nothing needed to be done.

haveResolvableWarnings

public boolean haveResolvableWarnings()

setHaveResolvableWarnings

public void setHaveResolvableWarnings(boolean value)

isCanceled

public boolean isCanceled()

setCanceled

public void setCanceled(boolean canceled)


© 2015 Microsoft. All rights reserved.