Package hudson.plugins.disk_usage
Class DiskUsagePlugin
java.lang.Object
hudson.Plugin
hudson.plugins.disk_usage.DiskUsagePlugin
- All Implemented Interfaces:
Saveable
,org.kohsuke.stapler.StaplerProxy
Entry point of the plugin.
- Author:
- dvrzalik
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.Plugin
Plugin.DummyImpl
-
Field Summary
Fields inherited from class hudson.Plugin
SKIP_PERMISSION_CHECK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) void
doRecordBuildDiskUsage
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doRecordJobsDiskUsage
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) void
doRecordWorkspaceDiskUsage
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getDiskUsage
(Job<?, ?> project) getDiskUsageInString
(Long size) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.List<?>
boolean
void
Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getTarget, getWrapper, load, postInitialize, save, setServletContext, start, stop
-
Constructor Details
-
DiskUsagePlugin
public DiskUsagePlugin()
-
-
Method Details
-
refreshGlobalInformation
- Throws:
IOException
-
getCashedGlobalBuildsDiskUsage
-
getCashedGlobalJobsDiskUsage
-
getCashedGlobalJobsWithoutBuildsDiskUsage
-
getCashedGlobalLockedBuildsDiskUsage
-
getCashedGlobalWorkspacesDiskUsage
-
getCashedNonSlaveDiskUsageWorkspace
Deprecated, for removal: This API element is subject to removal in a future version. -
getCashedNonAgentDiskUsageWorkspace
-
getCashedSlaveDiskUsageWorkspace
Deprecated, for removal: This API element is subject to removal in a future version. -
getCashedAgentDiskUsageWorkspace
-
getGlobalBuildsDiskUsage
- Throws:
IOException
-
getGlobalJobsDiskUsage
- Throws:
IOException
-
getGlobalJobsWithoutBuildsDiskUsage
- Throws:
IOException
-
getGlobalWorkspacesDiskUsage
- Throws:
IOException
-
getGlobalNonSlaveDiskUsageWorkspace
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
getGlobalNonAgentDiskUsageWorkspace
- Throws:
IOException
-
getGlobalSlaveDiskUsageWorkspace
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
getGlobalAgentDiskUsageWorkspace
- Throws:
IOException
-
getBuildsDiskUsageThread
-
getJobsDiskUsageThread
-
getWorkspaceDiskUsageThread
-
getDiskUsage
- Returns:
- DiskUsage for given project (shortcut for the view). Never null.
-
getDiskUsageInString
-
getProjectList
- 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
-
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
-
getCountIntervalForJobs
-
getCountIntervalForWorkspaces
-
hasAdministrativePermission
public boolean hasAdministrativePermission()
-