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

Field Summary
static int COUNT_INTERVAL_MINUTES
           
 
Constructor Summary
DiskUsagePlugin()
           
 
Method Summary
 void doRecordDiskUsage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res)
           
static DiskUsage getDiskUsage(hudson.model.Job project)
           
static DiskUsage getDiskUsageSum()
           
static java.util.List getProjectList()
           
static java.lang.String getProjectUrl(hudson.model.Job project)
           
 void start()
           
 
Methods inherited from class hudson.Plugin
configure, doDynamic, getConfigXml, load, save, setServletContext, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_INTERVAL_MINUTES

public static final int COUNT_INTERVAL_MINUTES
See Also:
Constant Field Values
Constructor Detail

DiskUsagePlugin

public DiskUsagePlugin()
Method Detail

start

public void start()
           throws java.lang.Exception
Overrides:
start in class hudson.Plugin
Throws:
java.lang.Exception

getDiskUsage

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

getProjectUrl

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

getProjectList

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

getDiskUsageSum

public static DiskUsage getDiskUsageSum()

doRecordDiskUsage

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


Copyright © 2008. All Rights Reserved.