hudson.plugins.disk_usage
Class DiskUsagePlugin

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.plugins.disk_usage.DiskUsagePlugin
All Implemented Interfaces:
hudson.model.Saveable

public class DiskUsagePlugin
extends hudson.Plugin

Entry point of the the plugin.

Author:
dvrzalik

Nested Class Summary
static class DiskUsagePlugin.DiskUsageManagementLink
           
static class DiskUsagePlugin.DiskUsageRootLink
          Unfortunately, I cannot figure out any other solution to satisfy JENKINS-12917 and at the same time JENKINS-16420
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
DiskUsagePlugin()
           
 
Method Summary
static List<hudson.model.AbstractProject> addAllProjects(hudson.model.ItemGroup<? extends hudson.model.Item> itemGroup, List<hudson.model.AbstractProject> items)
          Recursively add Projects form itemGroup
 void doRecordDiskUsage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res)
           
 int getCountInterval()
           
static DiskUsage getDiskUsage(hudson.model.Job project)
           
static DiskUsage getDiskUsageSum()
           
 hudson.util.Graph getOverallGraph()
          Generates a graph with disk usage trend
static List getProjectList()
           
static String getProjectUrl(hudson.model.Job project)
           
 
Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskUsagePlugin

public DiskUsagePlugin()
Method Detail

getDiskUsage

public static DiskUsage getDiskUsage(hudson.model.Job project)
Returns:
DiskUsage for given project (shortcut for the view). Never null.

getProjectUrl

public static String getProjectUrl(hudson.model.Job project)

getProjectList

public static List getProjectList()
Returns:
Project list sorted by occupied disk space

addAllProjects

public static List<hudson.model.AbstractProject> addAllProjects(hudson.model.ItemGroup<? extends hudson.model.Item> itemGroup,
                                                                List<hudson.model.AbstractProject> items)
Recursively add Projects form itemGroup


getDiskUsageSum

public static DiskUsage getDiskUsageSum()

doRecordDiskUsage

public void doRecordDiskUsage(org.kohsuke.stapler.StaplerRequest req,
                              org.kohsuke.stapler.StaplerResponse res)
                       throws javax.servlet.ServletException,
                              IOException
Throws:
javax.servlet.ServletException
IOException

getOverallGraph

public hudson.util.Graph getOverallGraph()
Generates a graph with disk usage trend


getCountInterval

public int getCountInterval()


Copyright © 2004-2013. All Rights Reserved.