Class DiskUsagePlugin

  • All Implemented Interfaces:
    Saveable, Loadable, org.kohsuke.stapler.StaplerProxy

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

      • DiskUsagePlugin

        public DiskUsagePlugin()
    • Method Detail

      • 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()
      • 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
      • 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
      • 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
      • 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()