Class BuildPreference
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BuildPreference>
-
- jp.ikedam.jenkins.plugins.scoringloadbalancer.preferences.BuildPreference
-
- All Implemented Interfaces:
Describable<BuildPreference>
public class BuildPreference extends AbstractDescribableImpl<BuildPreference>
Holds the configuration that which nodes are preferred to use. Used byBuildPreferenceJobProperty
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildPreference.DescriptorImpl
Manages view forBuildPreference
.
-
Constructor Summary
Constructors Constructor Description BuildPreference(String labelExpression, int preference)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabelExpression()
Returns the label expression to determine target nodes.int
getPreference()
Returns the preference score for target nodes.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
BuildPreference
@DataBoundConstructor public BuildPreference(String labelExpression, int preference)
Constructor. Initialized with values a user configured.- Parameters:
labelExpression
-preference
-
-
-
Method Detail
-
getLabelExpression
public String getLabelExpression()
Returns the label expression to determine target nodes.- Returns:
- the label expression
-
getPreference
public int getPreference()
Returns the preference score for target nodes.- Returns:
- the preference score
-
-