• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Graph类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中hudson.util.Graph的典型用法代码示例。如果您正苦于以下问题:Java Graph类的具体用法?Java Graph怎么用?Java Graph使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Graph类属于hudson.util包,在下文中一共展示了Graph类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createDurationTrendGraph

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Generate a duration trend graph for device minutes used for recent results.
 *
 * @param owner       The build which owns the latest result.
 * @param isCompleted The flag to denote if the result is completed which determines our caching.
 * @param results     The list of previous to latest results which generate the trend.
 * @return The duration trend graph.
 */
public static Graph createDurationTrendGraph(AbstractBuild<?, ?> owner, Boolean isCompleted, List<AWSDeviceFarmTestResult> results) {
    DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();

    for (AWSDeviceFarmTestResult result : results) {
        // Create label for this result using its Jenkins build number.
        Run<?, ?> build = result.getOwner();
        NumberOnlyBuildLabel label = new NumberOnlyBuildLabel(build);

        // Attach duration value for all results in our trend.
        builder.add(result.getDuration(), "Minutes", label);
    }

    CategoryDataset dataset = builder.build();
    Color[] colors = new Color[]{AWSDeviceFarmGraph.DurationColor};
    return new AWSDeviceFarmGraph(owner, isCompleted, getGraphSize(), dataset, "Build #", "Device Minutes Used", colors);
}
 
开发者ID:awslabs,项目名称:aws-device-farm-jenkins-plugin,代码行数:25,代码来源:AWSDeviceFarmGraph.java


示例2: 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


示例3: 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


示例4: 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


示例5: doSeverityTrend

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Display the severity trend graph.
 *
 * @param request Stapler request
 * @param response Stapler response
 * @throws IOException in case of an error
 */
public void doSeverityTrend(final StaplerRequest request, final StaplerResponse response) throws IOException {
	AbstractBuild<?,?> lastBuild = this.getLastFinishedBuild();
	final CodeDxBuildAction lastAction = lastBuild.getAction(CodeDxBuildAction.class);

	final Map<String,Color> colorMap = new HashMap<String,Color>();

	colorMap.put(Filter.SEVERITY_CRITICAL, new Color(0x610a14));
	colorMap.put(Filter.SEVERITY_HIGH, new Color(0xbd0026));
	colorMap.put(Filter.SEVERITY_MEDIUM, new Color(0xfd8d3c));
	colorMap.put(Filter.SEVERITY_LOW, new Color(0xfed976));
	colorMap.put(Filter.SEVERITY_INFO, new Color(0x888888));
	colorMap.put(Filter.SEVERITY_UNSPECIFIED, new Color(0xadadad));

	(new Graph(-1L, CHART_WIDTH, CHART_HEIGHT){
		@Override
		protected JFreeChart createGraph() {
			return CodeDxChartBuilder.buildChart(lastAction, analysisResultConfiguration.getNumBuildsInGraph(),"severity",colorMap);
		}
	}).doPng(request, response);
}
 
开发者ID:jenkinsci,项目名称:codedx-plugin,代码行数:28,代码来源:CodeDxProjectAction.java


示例6: doStatusTrend

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Display the status trend graph.
 *
 * @param request Stapler request
 * @param response Stapler response
 * @throws IOException in case of an error
 */
public void doStatusTrend(final StaplerRequest request, final StaplerResponse response) throws IOException {
	AbstractBuild<?,?> lastBuild = this.getLastFinishedBuild();
	final CodeDxBuildAction lastAction = lastBuild.getAction(CodeDxBuildAction.class);

	final Map<String,Color> colorMap = new HashMap<String,Color>();

	colorMap.put(StatisticGroup.New.toString(), new Color(0x542788));
	colorMap.put(StatisticGroup.Unresolved.toString(), new Color(0x998ec3));
	colorMap.put(StatisticGroup.Fixed.toString(), new Color(0x3288bd));
	colorMap.put(StatisticGroup.Mitigated.toString(), new Color(0x295ec6));
	colorMap.put(StatisticGroup.Assigned.toString(), new Color(0x01665e));
	colorMap.put(StatisticGroup.Escalated.toString(), new Color(0x5ab4ac));
	colorMap.put(StatisticGroup.Ignored.toString(), new Color(0xd8b365));
	colorMap.put(StatisticGroup.FalsePositive.toString(), new Color(0xd9d9d9));

	(new Graph(-1, CHART_WIDTH, CHART_HEIGHT){
		@Override
		protected JFreeChart createGraph() {
			return CodeDxChartBuilder.buildChart(lastAction, analysisResultConfiguration.getNumBuildsInGraph(),"status",colorMap);
		}
	}).doPng(request, response);
}
 
开发者ID:jenkinsci,项目名称:codedx-plugin,代码行数:30,代码来源:CodeDxProjectAction.java


示例7: createDurationTrendGraph

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Generate a duration trend graph for device minutes used for recent results.
 * @param owner build which owns the latest result
 * @param isCompleted flag to denote if the result is completed which determines our caching
 * @param results list of previous to latest results which generate the trend
 * @return
 */
public static Graph createDurationTrendGraph(AbstractBuild<?, ?> owner, Boolean isCompleted, List<AppThwackTestResult> results) {
    DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();

    for (AppThwackTestResult result : results) {
        // Create label for this result using its Jenkins build number.
        AbstractBuild<?, ?> build = result.getOwner();
        NumberOnlyBuildLabel label = new NumberOnlyBuildLabel(build);

        // Attach duration value for all results in our trend.
        builder.add(result.getDuration(), "Minutes", label);
    }

    CategoryDataset dataset = builder.build();
    Color[] colors = new Color[] { AppThwackGraph.DurationColor };
    return new AppThwackGraph(owner, isCompleted, getGraphSize(), dataset, "Build #", "Device Minutes Used", colors);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:24,代码来源:AppThwackGraph.java


示例8: createCpuTrendGraph

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Generate a CPU usage trend graph for recent results.
 * @param owner build which owns the latest result
 * @param isCompleted flag to denote if the result is completed which determines our caching
 * @param results list of previous to latest results which generate the trend
 * @return
 */
public static Graph createCpuTrendGraph(AbstractBuild<?, ?> owner, Boolean isCompleted, List<AppThwackTestResult> results) {
    DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();

    for (AppThwackTestResult result : results) {
        // Create label for this result using its Jenkins build number.
        AbstractBuild<?, ?> build = result.getOwner();
        NumberOnlyBuildLabel label = new NumberOnlyBuildLabel(build);

        // Attach CPU average value for each result in our trend.
        float cpuAvg = result.getCpuAvg();
        builder.add(cpuAvg, "CPU", label);
    }

    CategoryDataset dataset = builder.build();
    Color[] colors = new Color[] { AppThwackGraph.PassColor };
    return new AppThwackGraph(owner, isCompleted, getGraphSize(), dataset, "Build #", "CPU Average (%)", colors);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:25,代码来源:AppThwackGraph.java


示例9: createMemoryTrendGraph

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Generate a memory usage (KB) trend graph for recent results.
 * @param owner build which owns the latest result
 * @param isCompleted flag to denote if the result is completed which determines our caching
 * @param results list of previous to latest results which generate the trend
 * @return
 */
public static Graph createMemoryTrendGraph(AbstractBuild<?, ?> owner, Boolean isCompleted, List<AppThwackTestResult> results) {
    DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();

    for (AppThwackTestResult result : results) {
        // Create label for this result using its Jenkins build number.
        AbstractBuild<?, ?> build = result.getOwner();
        NumberOnlyBuildLabel label = new NumberOnlyBuildLabel(build);

        // Attach memory average value for each result in our trend.
        float memoryAvg = result.getMemoryAvg();
        builder.add(memoryAvg, "Memory", label);
    }

    CategoryDataset dataset = builder.build();
    Color[] colors = new Color[] { AppThwackGraph.PassColor };
    return new AppThwackGraph(owner, isCompleted, getGraphSize(), dataset, "Build #", "Memory Average (KB)", colors);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:25,代码来源:AppThwackGraph.java


示例10: createThreadTrendGraph

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Generate a thread count trend graph for recent results.
 * @param owner build which owns the latest result
 * @param isCompleted flag to denote if the result is completed which determines our caching
 * @param results list of previous to latest results which generate the trend
 * @return
 */
public static Graph createThreadTrendGraph(AbstractBuild<?, ?> owner, Boolean isCompleted, List<AppThwackTestResult> results) {
    DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();

    for (AppThwackTestResult result : results) {
        // Create label for this result using its Jenkins build number.
        AbstractBuild<?, ?> build = result.getOwner();
        NumberOnlyBuildLabel label = new NumberOnlyBuildLabel(build);

        // Attach thread count average value for each result in our trend.
        float threadAvg = result.getThreadAvg();
        builder.add(threadAvg, "Threads", label);
    }

    CategoryDataset dataset = builder.build();
    Color[] colors = new Color[] { AppThwackGraph.PassColor };
    return new AppThwackGraph(owner, isCompleted, getGraphSize(), dataset, "Build #", "Threads Average", colors);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:25,代码来源:AppThwackGraph.java


示例11: createFrameDrawTrendGraph

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Generate a frame draw time trend graph for recent results.
 * @param owner build which owns the latest result
 * @param isCompleted flag to denote if the result is completed which determines our caching
 * @param results list of previous to latest results which generate the trend
 * @return
 */
public static Graph createFrameDrawTrendGraph(AbstractBuild<?, ?> owner, Boolean isCompleted, List<AppThwackTestResult> results) {
    DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();

    for (AppThwackTestResult result : results) {
        // Create label for this result using its Jenkins build number.
        AbstractBuild<?, ?> build = result.getOwner();
        NumberOnlyBuildLabel label = new NumberOnlyBuildLabel(build);

        // Attach Frame Draw Times average value for each result in our trend.
        float drawTime = result.getDrawTimeAvg();
        builder.add(drawTime, "Frame Draw Time", label);
    }

    CategoryDataset dataset = builder.build();
    Color[] colors = new Color[] { AppThwackGraph.PassColor };
    return new AppThwackGraph(owner, isCompleted, getGraphSize(), dataset, "Build #", "Frame Draw Time Average (ms)", colors);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:25,代码来源:AppThwackGraph.java


示例12: createFpsTrendGraph

import hudson.util.Graph; //导入依赖的package包/类
/**
 * Generate a FPS trend graph for recent results.
 * @param owner build which owns the latest result
 * @param isCompleted flag to denote if the result is completed which determines our caching
 * @param results list of previous to latest results which generate the trend
 * @return
 */
public static Graph createFpsTrendGraph(AbstractBuild<?, ?> owner, Boolean isCompleted, List<AppThwackTestResult> results) {
    DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();

    for (AppThwackTestResult result : results) {
        // Create label for this result using its Jenkins build number.
        AbstractBuild<?, ?> build = result.getOwner();
        NumberOnlyBuildLabel label = new NumberOnlyBuildLabel(build);

        // Attach FPS average value for each result in our trend.
        float fps = result.getFpsAvg();
        builder.add(fps, "FPS", label);
    }

    CategoryDataset dataset = builder.build();
    Color[] colors = new Color[] { AppThwackGraph.PassColor };
    return new AppThwackGraph(owner, isCompleted, getGraphSize(), dataset, "Build #", "FPS Average", colors);
}
 
开发者ID:jenkinsci,项目名称:appthwack-plugin,代码行数:25,代码来源:AppThwackGraph.java


示例13: 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


示例14: 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


示例15: 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


示例16: 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


示例17: 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


示例18: 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


示例19: 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


示例20: 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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CommitBlockSynchronizationResponseProto类代码示例发布时间:2022-05-22
下一篇:
Java CloudletList类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap