public abstract class BfaGraphAction extends Object implements RootAction
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_GRAPH_HEIGHT
Default height for graphs on detail pages.
|
protected static int |
DEFAULT_GRAPH_WIDTH
Default width for graphs on detail pages.
|
protected static String |
EXCLUDE_ABORTED
Constant for "ABORTED"-cause (used to exclude such
FailureCause s). |
protected static char |
ID_SEPARATOR
Separator between different parts of graph IDs.
|
protected static String |
URL_PARAM_ALL_MASTERS
Url-parameter for indicating whether to show for all masters or not.
|
protected static String |
URL_PARAM_SHOW_ABORTED
Url-parameter for indicating whether to show or hide aborted builds.
|
protected static String |
URL_PARAM_TIME_PERIOD
Url-parameter for indicating time period to show in a graph.
|
protected static String |
URL_PARAM_VALUE_MAX
Url-parameter value for 'max'.
|
protected static String |
URL_PARAM_VALUE_MONTH
Url-parameter value for 'month'.
|
protected static String |
URL_PARAM_VALUE_TODAY
Url-parameter value for 'today'.
|
protected static String |
URL_PARAM_WHICH_GRAPH
Url-parameter for indicating which graph to show.
|
Constructor and Description |
---|
BfaGraphAction() |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultGraphHeight()
Helper for groovy-views; Get the default height of graphs on detailed pages.
|
int |
getDefaultGraphWidth()
Helper for groovy-views; Get the default width of graphs on detailed pages.
|
protected abstract Graph |
getGraph(GraphType which,
Date timePeriod,
boolean hideManAborted,
boolean allMasters,
Map<String,String> rawReqParams)
Get the graph corresponding to the specified arguments.
|
Graph |
getGraph(org.kohsuke.stapler.StaplerRequest req)
Get the Graph corresponding to the url-parameters.
|
protected abstract String |
getGraphCacheId(GraphType whichGraph,
String reqTimePeriod,
boolean hideAborted,
boolean forAllMasters)
Get a unique id used in the caching of the graph.
|
abstract String |
getGraphsPageTitle()
Get the title to display in the top of the detailed graphs page.
|
abstract GraphType[] |
getGraphTypes()
Returns an array of
GraphType s, where each element represents
a graph. |
abstract ModelObject |
getOwner()
Get the owner.
|
boolean |
showGraphDelayText()
Helper for the groovy-views; show/hide info text for graph delay.
|
boolean |
showMasterSwitch()
Helper for the groovy-views; show/hide Masters-switch.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getIconFileName, getUrlName
protected static final String URL_PARAM_TIME_PERIOD
protected static final String URL_PARAM_WHICH_GRAPH
protected static final String URL_PARAM_SHOW_ABORTED
protected static final String URL_PARAM_ALL_MASTERS
protected static final String URL_PARAM_VALUE_TODAY
protected static final String URL_PARAM_VALUE_MONTH
protected static final String URL_PARAM_VALUE_MAX
protected static final int DEFAULT_GRAPH_WIDTH
protected static final int DEFAULT_GRAPH_HEIGHT
protected static final String EXCLUDE_ABORTED
FailureCause
s).protected static final char ID_SEPARATOR
public abstract ModelObject getOwner()
public abstract GraphType[] getGraphTypes()
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.GraphType
s where each element
represents a graph to displaypublic abstract String getGraphsPageTitle()
protected abstract Graph getGraph(GraphType which, Date timePeriod, boolean hideManAborted, boolean allMasters, Map<String,String> rawReqParams)
which
- Which graph to displaytimePeriod
- How old statistics should be included in the graphhideManAborted
- Hide manually aborted causesallMasters
- Show for all mastersrawReqParams
- The url parameters that came with the requestpublic Graph getGraph(org.kohsuke.stapler.StaplerRequest req)
req
- The StaplerRequestprotected abstract String getGraphCacheId(GraphType whichGraph, String reqTimePeriod, boolean hideAborted, boolean forAllMasters)
whichGraph
- Which graphreqTimePeriod
- The selected time periodhideAborted
- Hide aborted buildsforAllMasters
- For all masterspublic int getDefaultGraphWidth()
public int getDefaultGraphHeight()
public boolean showMasterSwitch()
public boolean showGraphDelayText()
Copyright © 2016–2019. All rights reserved.