jetbrains.buildServer
Class AddToQueueResult

java.lang.Object
  extended by jetbrains.buildServer.AddToQueueResult

public class AddToQueueResult
extends java.lang.Object

Contains result of adding build(s) in the queue


Constructor Summary
AddToQueueResult()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void failedToAdd(java.lang.String buildTypeId, java.lang.String reason)
           
 java.lang.String formatReasons(java.util.Collection<BuildType> selectedBuildTypes)
          Formats text with all failure reasons
 java.lang.String getFailureReason(java.lang.String buildTypeId)
           
 java.lang.String getWarning(java.lang.String buildTypeId)
           
 boolean hasFailures()
          Is there any errors
 int hashCode()
           
 boolean hasWarning(java.lang.String buildTypeId)
           
 boolean isFailed(java.lang.String buildTypeId)
           
 boolean isSuccessful(java.lang.String buildTypeId)
           
 void warning(java.lang.String buildTypeId, java.lang.String reason)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddToQueueResult

public AddToQueueResult()
Method Detail

failedToAdd

public void failedToAdd(java.lang.String buildTypeId,
                        java.lang.String reason)

warning

public void warning(java.lang.String buildTypeId,
                    java.lang.String reason)

isFailed

public boolean isFailed(java.lang.String buildTypeId)

hasWarning

public boolean hasWarning(java.lang.String buildTypeId)

getFailureReason

public java.lang.String getFailureReason(java.lang.String buildTypeId)

getWarning

public java.lang.String getWarning(java.lang.String buildTypeId)

isSuccessful

public boolean isSuccessful(java.lang.String buildTypeId)

hasFailures

public boolean hasFailures()
Is there any errors

Returns:
flag

formatReasons

public java.lang.String formatReasons(java.util.Collection<BuildType> selectedBuildTypes)
Formats text with all failure reasons

Parameters:
selectedBuildTypes - list of types selected to run
Returns:
formatted text

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object