Class BuildPreferenceNodeProperty
java.lang.Object
hudson.slaves.NodeProperty<Node>
jp.ikedam.jenkins.plugins.scoringloadbalancer.preferences.BuildPreferenceNodeProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<NodeProperty<?>>
,ReconfigurableDescribable<NodeProperty<?>>
Holds configuration that how this node is preferred.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.slaves.NodeProperty
node
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.slaves.NodeProperty
all, buildEnvVars, canTake, canTake, for_, getDescriptor, reconfigure, setNode, setUp
-
Constructor Details
-
BuildPreferenceNodeProperty
@DataBoundConstructor public BuildPreferenceNodeProperty(int preference) Constructor. Initialized with values a user configured.- Parameters:
preference
-
-
-
Method Details
-
getPreference
public int getPreference()Returns how this node is preferred. Larger value is more preferred.- Returns:
- the preference
-