|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.jenkins.plugins.bfa.BfaGraphAction
public abstract class BfaGraphAction
Abstract class to handle the detailed graphs pages.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary | |
---|---|
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 Summary | |
---|---|
BfaGraphAction()
|
Method Summary | |
---|---|
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 hudson.util.Graph |
getGraph(GraphType which,
Date timePeriod,
boolean hideManAborted,
boolean allMasters,
Map<String,String> rawReqParams)
Get the graph corresponding to the specified arguments. |
hudson.util.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 hudson.model.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hudson.model.Action |
---|
getDisplayName, getIconFileName, getUrlName |
Field Detail |
---|
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
Constructor Detail |
---|
public BfaGraphAction()
Method Detail |
---|
public abstract hudson.model.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 hudson.util.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 request
public hudson.util.Graph getGraph(org.kohsuke.stapler.StaplerRequest req)
req
- The StaplerRequest
protected abstract String getGraphCacheId(GraphType whichGraph, String reqTimePeriod, boolean hideAborted, boolean forAllMasters)
whichGraph
- Which graphreqTimePeriod
- The selected time periodhideAborted
- Hide aborted buildsforAllMasters
- For all masters
public int getDefaultGraphWidth()
public int getDefaultGraphHeight()
public boolean showMasterSwitch()
public boolean showGraphDelayText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |