|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.jenkins.plugins.bfa.BfaGraphAction
com.sonyericsson.jenkins.plugins.bfa.graphs.ComputerGraphAction
public class ComputerGraphAction
Class for displaying graphs for nodes - slaves/masters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
---|
Fields inherited from class com.sonyericsson.jenkins.plugins.bfa.BfaGraphAction |
---|
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 Summary | |
---|---|
ComputerGraphAction(hudson.model.Computer computer)
Standard constructor. |
Method Summary | |
---|---|
String |
getDisplayName()
|
protected hudson.util.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()
|
hudson.model.ModelObject |
getOwner()
Get the owner. |
String |
getUrlName()
|
static void |
invalidateNodeGraphCache(hudson.model.Computer computer)
Invalidate all graph caches for the specified computer. |
static void |
invalidateNodeGraphCache(hudson.model.Node buildNode)
Invalidate all graph caches for the specified buildNode. |
Methods inherited from class com.sonyericsson.jenkins.plugins.bfa.BfaGraphAction |
---|
getDefaultGraphHeight, getDefaultGraphWidth, getGraph, showGraphDelayText, showMasterSwitch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComputerGraphAction(hudson.model.Computer computer)
computer
- The computer/nodeMethod Detail |
---|
public String getIconFileName()
public String getDisplayName()
public String getUrlName()
public hudson.model.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 hudson.util.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 request
protected 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 masters
public static void invalidateNodeGraphCache(hudson.model.Computer computer)
computer
- The computer whose graphs to invalidatepublic static void invalidateNodeGraphCache(hudson.model.Node buildNode)
buildNode
- The buildNode whose graphs to invalidate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |