本文整理汇总了Java中hudson.util.Graph.doPng方法的典型用法代码示例。如果您正苦于以下问题:Java Graph.doPng方法的具体用法?Java Graph.doPng怎么用?Java Graph.doPng使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hudson.util.Graph
的用法示例。
在下文中一共展示了Graph.doPng方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Return trend graph of all AWS Device Farm results for this project.
*
* @param request The request object.
* @param response The response object.
* @throws IOException
*/
@SuppressWarnings("unused")
public void doGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Get previous AWS Device Farm build and results.
AWSDeviceFarmTestResultAction prev = getLastBuildAction();
if (prev == null) {
return;
}
AWSDeviceFarmTestResult result = prev.getResult();
if (result == null) {
return;
}
// Create new graph for the AWS Device Farm results of all runs in this project.
Graph graph = AWSDeviceFarmGraph.createResultTrendGraph(prev.getOwner(), false, result.getPreviousResults());
graph.doPng(request, response);
}
示例2: doGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the number of pass/warn/fail results in a test run, for the previous three Jenkins runs.
*
* @param request
* @param response
* @throws IOException
*/
@SuppressWarnings("unused")
public void doGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new graph for this AWS Device Farm result.
Graph graph = AWSDeviceFarmGraph.createResultTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例3: doDurationGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the number of device minutes used in a test run, for the previous three Jenkins runs.
*
* @param request
* @param response
* @throws IOException
*/
@SuppressWarnings("unused")
public void doDurationGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new duration graph for this AWS Device Farm result.
Graph graph = AWSDeviceFarmGraph.createDurationTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例4: doGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the number of pass/warn/fail results in a test run, for the previous three Jenkins runs.
* @param request
* @param response
* @throws IOException
*/
public void doGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new graph for this AppThwack result.
Graph graph = AppThwackGraph.createResultTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例5: doDurationGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the number of device minutes used in a test run, for the previous three Jenkins runs.
* @param request
* @param response
* @throws IOException
*/
public void doDurationGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new duration graph for this AppThwack result.
Graph graph = AppThwackGraph.createDurationTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例6: doCpuGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the average CPU usage for all devices in a test run, for the previous three Jenkins runs.
* @param request
* @param response
* @throws IOException
*/
public void doCpuGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new performance graph for this AppThwack result.
Graph graph = AppThwackGraph.createCpuTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例7: doMemoryGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the average memory usage (KB) used for all devices in a test run, for the previous three Jenkins runs.
* @param request
* @param response
* @throws IOException
*/
public void doMemoryGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new performance graph for this AppThwack result.
Graph graph = AppThwackGraph.createMemoryTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例8: doThreadGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the average number of threads used for all devices in a test run, for the previous three Jenkins runs.
* @param request
* @param response
* @throws IOException
*/
public void doThreadGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new performance graph for this AppThwack result.
Graph graph = AppThwackGraph.createThreadTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例9: doFrameDrawGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the average frame draw times for all devices in a test run, for the previous three Jenkins runs.
* @param request
* @param response
* @throws IOException
*/
public void doFrameDrawGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new performance graph for this AppThwack result.
Graph graph = AppThwackGraph.createFrameDrawTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例10: doFpsGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Create the graph image for the average frames per second of all devices in a test run, for the previous three Jenkins runs.
* @param request
* @param response
* @throws IOException
*/
public void doFpsGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Check the "If-Modified-Since" header and abort if we don't need re-create the graph.
if (isCompleted()) {
Calendar timestamp = getOwner().getTimestamp();
if (request.checkIfModified(timestamp, response)) {
return;
}
}
// Create new performance graph for this AppThwack result.
Graph graph = AppThwackGraph.createFpsTrendGraph(build, isCompleted(), getPreviousResults(DefaultTrendGraphSize));
graph.doPng(request, response);
}
示例11: doGraph
import hudson.util.Graph; //导入方法依赖的package包/类
/**
* Return trend graph of all AppThwack results for this project.
* @param request
* @param response
* @throws IOException
* @throws ServletException
*/
public void doGraph(StaplerRequest request, StaplerResponse response) throws IOException {
// Abort if having Java AWT issues.
if (ChartUtil.awtProblemCause != null) {
response.sendRedirect2(String.format("%s/images/headless.png", request.getContextPath()));
return;
}
// Get previous AppThwack build and results.
AppThwackTestResultAction prev = getLastBuildAction();
if (prev == null) {
return;
}
AppThwackTestResult result = prev.getResult();
if (result == null) {
return;
}
// Create new graph for the AppThwack results of all runs in this project.
Graph graph = AppThwackGraph.createResultTrendGraph(prev.getOwner(), false, result.getPreviousResults());
graph.doPng(request, response);
}