当前位置: 首页>>代码示例>>Java>>正文


Java Graph.doPng方法代码示例

本文整理汇总了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);
}
 
开发者ID:awslabs,项目名称:aws-device-farm-jenkins-plugin,代码行数:30,代码来源:AWSDeviceFarmProjectAction.java

示例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);
}
 
开发者ID:awslabs,项目名称:aws-device-farm-jenkins-plugin,代码行数:28,代码来源:AWSDeviceFarmTestResult.java

示例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);
}
 
开发者ID:awslabs,项目名称:aws-device-farm-jenkins-plugin,代码行数:28,代码来源:AWSDeviceFarmTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:26,代码来源:AppThwackTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:26,代码来源:AppThwackTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:26,代码来源:AppThwackTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:26,代码来源:AppThwackTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:26,代码来源:AppThwackTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:26,代码来源:AppThwackTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:26,代码来源:AppThwackTestResult.java

示例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);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:29,代码来源:AppThwackProjectAction.java


注:本文中的hudson.util.Graph.doPng方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。