Package jenkins.model
Class NodeListener
- java.lang.Object
-
- jenkins.model.NodeListener
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class NodeListener extends Object implements ExtensionPoint
Listen toNode
CRUD operations.- Since:
- 2.8
- Author:
- ogondza.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description NodeListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<NodeListener>
all()
Get allNodeListener
s registered in Jenkins.static void
fireOnCreated(Node node)
Inform listeners that node is being created.static void
fireOnDeleted(Node node)
Inform listeners that node is being removed.static void
fireOnUpdated(Node oldOne, Node newOne)
Inform listeners that node is being updated.protected void
onCreated(Node node)
Node is being created.protected void
onDeleted(Node node)
Node is being deleted.protected void
onUpdated(Node oldOne, Node newOne)
Node is being updated.
-
-
-
Method Detail
-
onCreated
protected void onCreated(@NonNull Node node)
Node is being created.
-
onUpdated
protected void onUpdated(@NonNull Node oldOne, @NonNull Node newOne)
Node is being updated.
-
onDeleted
protected void onDeleted(@NonNull Node node)
Node is being deleted.
-
fireOnCreated
public static void fireOnCreated(@NonNull Node node)
Inform listeners that node is being created.- Parameters:
node
- A node being created.
-
fireOnUpdated
public static void fireOnUpdated(@NonNull Node oldOne, @NonNull Node newOne)
Inform listeners that node is being updated.- Parameters:
oldOne
- Old configuration.newOne
- New Configuration.
-
fireOnDeleted
public static void fireOnDeleted(@NonNull Node node)
Inform listeners that node is being removed.- Parameters:
node
- A node being removed.
-
all
@NonNull public static List<NodeListener> all()
Get allNodeListener
s registered in Jenkins.
-
-