Package io.jenkins.plugins.monitoring
Class DemoPortlet.ExampleMonitorFactory
- java.lang.Object
-
- io.jenkins.plugins.monitoring.MonitorPortletFactory
-
- io.jenkins.plugins.monitoring.DemoPortlet.ExampleMonitorFactory
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- DemoPortlet
@Extension public static class DemoPortlet.ExampleMonitorFactory extends MonitorPortletFactory
An example ofMonitorPortletFactory
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ExampleMonitorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Defines the name of the factory.Collection<MonitorPortlet>
getPortlets(Run<?,?> build)
Get a collection ofMonitorPortlet
to display.
-
-
-
Method Detail
-
getPortlets
public Collection<MonitorPortlet> getPortlets(Run<?,?> build)
Description copied from class:MonitorPortletFactory
Get a collection ofMonitorPortlet
to display.- Specified by:
getPortlets
in classMonitorPortletFactory
- Parameters:
build
- the referenceRun
.- Returns:
- a collection of
MonitorPortlet
.
-
getDisplayName
public String getDisplayName()
Description copied from class:MonitorPortletFactory
Defines the name of the factory.- Specified by:
getDisplayName
in classMonitorPortletFactory
- Returns:
- the name to display for the factory.
-
-