|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.slaves.NodeProperty<N>
N - NodeProperty can choose to only work with a certain
subtype of Node, and this 'N' represents that type. Also see
PropertyDescriptor.isApplicable(Class).public abstract class NodeProperty<N extends Node>
Extensible property of Node.
Plugins can contribute this extension point to add additional data or UI
actions to Node. NodePropertys show up in the configuration
screen of a node, and they are persisted with the Node object.
Computer associated with the node
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
NodeProperty()
|
|
| Method Summary | |
|---|---|
static DescriptorExtensionList<NodeProperty<?>,NodePropertyDescriptor> |
all()
Lists up all the registered NodeDescriptors in the system. |
CauseOfBlockage |
canTake(Queue.Task task)
Called by the Node to help determine whether or not it should
take the given task. |
static List<NodePropertyDescriptor> |
for_(Node node)
List up all NodePropertyDescriptors that are applicable for the
given project. |
NodePropertyDescriptor |
getDescriptor()
Gets the descriptor for this instance. |
Environment |
setUp(AbstractBuild build,
Launcher launcher,
BuildListener listener)
Runs before the SCM.checkout(AbstractBuild, Launcher, FilePath, BuildListener, File)
runs, and performs a set up. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeProperty()
| Method Detail |
|---|
public NodePropertyDescriptor getDescriptor()
Describable Descriptor is a singleton for every concrete
Describable implementation, so if
a.getClass()==b.getClass() then
a.getDescriptor()==b.getDescriptor() must hold.
getDescriptor in interface Describable<NodeProperty<?>>public CauseOfBlockage canTake(Queue.Task task)
Node to help determine whether or not it should
take the given task. Individual properties can return a non-null value
here if there is some reason the given task should not be run on its
associated node. By default, this method returns
null.
public Environment setUp(AbstractBuild build,
Launcher launcher,
BuildListener listener)
throws IOException,
InterruptedException
SCM.checkout(AbstractBuild, Launcher, FilePath, BuildListener, File)
runs, and performs a set up. Can contribute additional properties to the
environment.
build - The build in progress for which an Environment
object is created. Never null.launcher - This launcher can be used to launch processes for this
build. If the build runs remotely, launcher will also run a job on that
remote machine. Never null.listener - Can be used to send any message.
IOException - terminates the build abnormally. Hudson will handle
the exception and reports a nice error message.
InterruptedExceptionpublic static DescriptorExtensionList<NodeProperty<?>,NodePropertyDescriptor> all()
NodeDescriptors in the system.
public static List<NodePropertyDescriptor> for_(Node node)
NodePropertyDescriptors that are applicable for the
given project.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||