Class DiskUsagePlugin

java.lang.Object
hudson.Plugin
hudson.plugins.disk_usage.DiskUsagePlugin
All Implemented Interfaces:
Saveable, org.kohsuke.stapler.StaplerProxy

@Extension public class DiskUsagePlugin extends Plugin
Entry point of the plugin.
Author:
dvrzalik
  • Constructor Details

    • DiskUsagePlugin

      public DiskUsagePlugin()
  • Method Details

    • refreshGlobalInformation

      public void refreshGlobalInformation() throws IOException
      Throws:
      IOException
    • getCashedGlobalBuildsDiskUsage

      public Long getCashedGlobalBuildsDiskUsage()
    • getCashedGlobalJobsDiskUsage

      public Long getCashedGlobalJobsDiskUsage()
    • getCashedGlobalJobsWithoutBuildsDiskUsage

      public Long getCashedGlobalJobsWithoutBuildsDiskUsage()
    • getCashedGlobalLockedBuildsDiskUsage

      public Long getCashedGlobalLockedBuildsDiskUsage()
    • getCashedGlobalWorkspacesDiskUsage

      public Long getCashedGlobalWorkspacesDiskUsage()
    • getCashedNonSlaveDiskUsageWorkspace

      @Deprecated(forRemoval=true) public Long getCashedNonSlaveDiskUsageWorkspace()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCashedNonAgentDiskUsageWorkspace

      public Long getCashedNonAgentDiskUsageWorkspace()
    • getCashedSlaveDiskUsageWorkspace

      @Deprecated(forRemoval=true) public Long getCashedSlaveDiskUsageWorkspace()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCashedAgentDiskUsageWorkspace

      public Long getCashedAgentDiskUsageWorkspace()
    • getGlobalBuildsDiskUsage

      public Long getGlobalBuildsDiskUsage() throws IOException
      Throws:
      IOException
    • getGlobalJobsDiskUsage

      public Long getGlobalJobsDiskUsage() throws IOException
      Throws:
      IOException
    • getGlobalJobsWithoutBuildsDiskUsage

      public Long getGlobalJobsWithoutBuildsDiskUsage() throws IOException
      Throws:
      IOException
    • getGlobalWorkspacesDiskUsage

      public Long getGlobalWorkspacesDiskUsage() throws IOException
      Throws:
      IOException
    • getGlobalNonSlaveDiskUsageWorkspace

      @Deprecated(forRemoval=true) public Long getGlobalNonSlaveDiskUsageWorkspace() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • getGlobalNonAgentDiskUsageWorkspace

      public Long getGlobalNonAgentDiskUsageWorkspace() throws IOException
      Throws:
      IOException
    • getGlobalSlaveDiskUsageWorkspace

      @Deprecated(forRemoval=true) public Long getGlobalSlaveDiskUsageWorkspace() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • getGlobalAgentDiskUsageWorkspace

      public Long getGlobalAgentDiskUsageWorkspace() throws IOException
      Throws:
      IOException
    • getBuildsDiskUsageThread

      public BuildDiskUsageCalculationThread getBuildsDiskUsageThread()
    • getJobsDiskUsageThread

      public JobWithoutBuildsDiskUsageCalculation getJobsDiskUsageThread()
    • getWorkspaceDiskUsageThread

      public WorkspaceDiskUsageCalculationThread getWorkspaceDiskUsageThread()
    • getDiskUsage

      public ProjectDiskUsageAction getDiskUsage(Job<?,?> project)
      Returns:
      DiskUsage for given project (shortcut for the view). Never null.
    • getDiskUsageInString

      public String getDiskUsageInString(Long size)
    • getProjectList

      public List<?> getProjectList() throws IOException
      Returns:
      Project list sorted by occupied disk space
      Throws:
      IOException
    • doFilter

      public void doFilter(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException
    • getConfiguration

    • getOverallGraph

      public Graph getOverallGraph()
    • doRecordBuildDiskUsage

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

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

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

      public String getCountIntervalForBuilds()
    • getCountIntervalForJobs

      public String getCountIntervalForJobs()
    • getCountIntervalForWorkspaces

      public String getCountIntervalForWorkspaces()
    • hasAdministrativePermission

      public boolean hasAdministrativePermission()