public class ProjectGraphAction extends BfaGraphAction
ExtensionPoint.LegacyInstancesAreScopedToHudson
DEFAULT_GRAPH_HEIGHT, DEFAULT_GRAPH_WIDTH, EXCLUDE_ABORTED, ID_SEPARATOR, URL_PARAM_ALL_MASTERS, URL_PARAM_SHOW_ABORTED, URL_PARAM_TIME_PERIOD, URL_PARAM_VALUE_MAX, URL_PARAM_VALUE_MONTH, URL_PARAM_VALUE_TODAY, URL_PARAM_WHICH_GRAPH
Constructor and Description |
---|
ProjectGraphAction(Job project)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName() |
protected Graph |
getGraph(GraphType which,
Date timePeriod,
boolean hideManAborted,
boolean forAllMasters,
Map<String,String> rawReqParams)
Get the graph corresponding to the specified arguments.
|
protected String |
getGraphCacheId(GraphType whichGraph,
String reqTimePeriod,
boolean hideAborted,
boolean forAllMasters)
Get a unique id used in the caching of the graph.
|
String |
getGraphsPageTitle()
Get the title to display in the top of the detailed graphs page.
|
GraphType[] |
getGraphTypes()
Returns an array of
GraphType s, where each element represents
a graph. |
String |
getIconFileName() |
ModelObject |
getOwner()
Get the owner.
|
String |
getUrlName() |
static void |
invalidateBuildNbrGraphCache(Job project)
Invalidate the cache for the build number graph for the specified project.
|
static void |
invalidateProjectGraphCache(Job project)
Invalidate all graph caches for the specified project.
|
getDefaultGraphHeight, getDefaultGraphWidth, getGraph, showGraphDelayText, showMasterSwitch
public ProjectGraphAction(Job project)
project
- the parent project of this actionpublic String getDisplayName()
public String getIconFileName()
public String getUrlName()
public ModelObject getOwner()
BfaGraphAction
getOwner
in class BfaGraphAction
public GraphType[] getGraphTypes()
BfaGraphAction
GraphType
s, where each element represents
a graph. These are the types used to display the graphs/images
on the detailed graphs page, that is, they will be the 'which'-parameter
to getGraph(GraphType which, Date ...).
The graphs are displayed in the same order as the numbers in the array.getGraphTypes
in class BfaGraphAction
GraphType
s where each element
represents a graph to displaypublic String getGraphsPageTitle()
BfaGraphAction
getGraphsPageTitle
in class BfaGraphAction
protected Graph getGraph(GraphType which, Date timePeriod, boolean hideManAborted, boolean forAllMasters, Map<String,String> rawReqParams)
BfaGraphAction
getGraph
in class BfaGraphAction
which
- Which graph to displaytimePeriod
- How old statistics should be included in the graphhideManAborted
- Hide manually aborted causesforAllMasters
- Show for all mastersrawReqParams
- The url parameters that came with the requestprotected String getGraphCacheId(GraphType whichGraph, String reqTimePeriod, boolean hideAborted, boolean forAllMasters)
BfaGraphAction
getGraphCacheId
in class BfaGraphAction
whichGraph
- Which graphreqTimePeriod
- The selected time periodhideAborted
- Hide aborted buildsforAllMasters
- For all masterspublic static void invalidateBuildNbrGraphCache(Job project)
project
- The project whose build number graph to invalidatepublic static void invalidateProjectGraphCache(Job project)
project
- The project whose graphs to invalidateCopyright © 2016–2019. All rights reserved.