Component - The type of DerivedPageComponent be that Component
this Zone stores.Report - The specific subtype of DerivedPageComponentReport that
Component should output.@ExportedBean public abstract class DerivedPageZone<Component extends DerivedPageComponent<Report>,Report extends DerivedPageComponentReport> extends Object implements hudson.model.ModelObject
DerivedPageZone is a named container for
DerivedPageComponents. Separating pages into different grouping
gives flexibility to allow for different severity levels, different
listeners, projects or users, etc. For example, in a Jenkins health-testing
implementation, critical health metrics may require immediate actions, while
low severity ones may need a reaction only once a day.
Each DerivedPageZone has a unique URL path
"/${DerivedPageAction.getUrlName}/zone/${zoneName}".| Constructor and Description |
|---|
DerivedPageZone(String name,
List<Component> components) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Report |
derivePageComponent(Component component)
Return the component's Report indicating the success of the derivation and
any result obtained from it.
|
List<Component> |
getComponents() |
String |
getName() |
Map<String,Report> |
getReports() |
protected abstract String |
namePageComponent(Component component)
Provide the key by which a
Component's derived result will be
indexed and displayed to the user. |
public DerivedPageZone(String name, List<Component> components)
name - the name of this DerivedPageZone.components - a list of DerivedPageComponents to contain.public String getName()
public List<Component> getComponents()
DerivedPageComponent in this
DerivedPageZone.protected abstract String namePageComponent(Component component)
Component's derived result will be
indexed and displayed to the user. For examples, a name passed to the
component's constructor on page configuration, or the name of the component
class when there will be no reuse within a page.protected abstract Report derivePageComponent(Component component)
@Exported public Map<String,Report> getReports()
DerivedPageComponents.Copyright © 2004-2015. All Rights Reserved.