Package hudson.plugins.disk_usage
Class DiskUsagePlugin
java.lang.Object
hudson.Plugin
hudson.plugins.disk_usage.DiskUsagePlugin
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) voiddoRecordBuildDiskUsage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) voiddoRecordJobsDiskUsage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) voiddoRecordWorkspaceDiskUsage(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<?> booleanvoidMethods inherited from class hudson.Plugin
configure, configure, configure, doDynamic, 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.ServletExceptionIOException
-
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.ServletExceptionIOExceptionException
-
doRecordJobsDiskUsage
public void doRecordJobsDiskUsage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException, Exception - Throws:
javax.servlet.ServletExceptionIOExceptionException
-
doRecordWorkspaceDiskUsage
public void doRecordWorkspaceDiskUsage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException, Exception - Throws:
javax.servlet.ServletExceptionIOExceptionException
-
getCountIntervalForBuilds
-
getCountIntervalForJobs
-
getCountIntervalForWorkspaces
-
hasAdministrativePermission
public boolean hasAdministrativePermission()
-