com.sonyericsson.jenkins.plugins.bfa.graphs
Class GraphFilterBuilder

java.lang.Object
  extended by com.sonyericsson.jenkins.plugins.bfa.graphs.GraphFilterBuilder

public class GraphFilterBuilder
extends Object

Class for filtering statistics data, used when building graphs.

Author:
Fredrik Persson <fredrik6.persson@sonymobile.com>, Christoffer Lauri <christoffer.lauri@sonymobile.com>

Constructor Summary
GraphFilterBuilder()
           
 
Method Summary
 List<Integer> getBuildNumbers()
          Getter for filter on build numbers.
 String getExcludeResult()
          Getter for filter on build result.
 String getMasterName()
          Getter for filter on master name.
 String getProjectName()
          Getter for filter on project name.
 String getResult()
          Getter for filter on build result.
 Date getSince()
          Getter for filter on date.
 String getSlaveName()
          Getter for filter on slave name.
 void setBuildNumbers(List<Integer> buildNumbers)
          Adds a filter on build numbers, which only allows items that have one of the numbers in the argument list.
 void setExcludeResult(String excludeResult)
          Adds a filter on build result, which excludes items with this result.
 void setMasterName(String masterName)
          Adds a filter on master name, which only allows items that have this name.
 void setProjectName(String projectName)
          Adds a filter on project name, which only allows items that have this name.
 void setResult(String result)
          Adds a filter on build result, which only allows items with this result.
 void setSince(Date since)
          Adds a filter on date, which only allows items with date later than the argument date.
 void setSlaveName(String slaveName)
          Adds a filter on slave name, which only allows items that have this name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFilterBuilder

public GraphFilterBuilder()
Method Detail

setMasterName

public void setMasterName(String masterName)
Adds a filter on master name, which only allows items that have this name.

Parameters:
masterName - master name to allow

setSlaveName

public void setSlaveName(String slaveName)
Adds a filter on slave name, which only allows items that have this name.

Parameters:
slaveName - project name to allow

setProjectName

public void setProjectName(String projectName)
Adds a filter on project name, which only allows items that have this name.

Parameters:
projectName - project name to allow

setBuildNumbers

public void setBuildNumbers(List<Integer> buildNumbers)
Adds a filter on build numbers, which only allows items that have one of the numbers in the argument list.

Parameters:
buildNumbers - build numbers to allow

setSince

public void setSince(Date since)
Adds a filter on date, which only allows items with date later than the argument date.

Parameters:
since - first date to allow

setResult

public void setResult(String result)
Adds a filter on build result, which only allows items with this result.

Parameters:
result - result to allow

setExcludeResult

public void setExcludeResult(String excludeResult)
Adds a filter on build result, which excludes items with this result.

Parameters:
excludeResult - result to exclude

getMasterName

public String getMasterName()
Getter for filter on master name.

Returns:
the master name that is allowed

getSlaveName

public String getSlaveName()
Getter for filter on slave name.

Returns:
the slave name that is allowed

getProjectName

public String getProjectName()
Getter for filter on project name.

Returns:
the project name that is allowed

getBuildNumbers

public List<Integer> getBuildNumbers()
Getter for filter on build numbers.

Returns:
list of allowed build numbers

getSince

public Date getSince()
Getter for filter on date.

Returns:
first date that is allowed

getResult

public String getResult()
Getter for filter on build result.

Returns:
result that is allowed

getExcludeResult

public String getExcludeResult()
Getter for filter on build result.

Returns:
result that is excluded


Copyright © 2004-2014. All Rights Reserved.