Package hudson.plugins.disk_usage
Class ProjectDiskUsageAction
- java.lang.Object
-
- hudson.plugins.disk_usage.ProjectDiskUsageAction
-
- All Implemented Interfaces:
Action
,ModelObject
,ProminentProjectAction
@ExportedBean(defaultVisibility=1) public class ProjectDiskUsageAction extends Object implements ProminentProjectAction
Disk usage of a project- Author:
- dvrzalik
-
-
Constructor Summary
Constructors Constructor Description ProjectDiskUsageAction(AbstractProject<? extends AbstractProject<?,?>,? extends AbstractBuild<?,?>> project)
-
Method Summary
-
-
-
Constructor Detail
-
ProjectDiskUsageAction
public ProjectDiskUsageAction(AbstractProject<? extends AbstractProject<?,?>,? extends AbstractBuild<?,?>> project)
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getDiskUsageWorkspace
public Long getDiskUsageWorkspace()
-
getAllSlaveWorkspaces
@Deprecated(forRemoval=true) public Long getAllSlaveWorkspaces()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getAllAgentWorkspaces
public Long getAllAgentWorkspaces()
-
getAllCustomOrNonSlaveWorkspaces
@Deprecated(forRemoval=true) public Long getAllCustomOrNonSlaveWorkspaces()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getAllCustomOrNonAgentWorkspaces
public Long getAllCustomOrNonAgentWorkspaces()
-
getAllDiskUsageWorkspace
public Long getAllDiskUsageWorkspace()
Returns all workspace disku usage including workspace usage its sub-projects- Returns:
- disk usage project and its sub-projects
-
getDiskUsageWithoutBuilds
public Long getDiskUsageWithoutBuilds()
-
getAllDiskUsageWithoutBuilds
public Long getAllDiskUsageWithoutBuilds()
-
getJobRootDirDiskUsage
public Long getJobRootDirDiskUsage()
-
getBuildsDiskUsage
public Map<String,Long> getBuildsDiskUsage() throws IOException
- Throws:
IOException
-
getAllBuildsDiskUsage
public Long getAllBuildsDiskUsage() throws IOException
- Throws:
IOException
-
getBuildsDiskUsage
public Map<String,Long> getBuildsDiskUsage(Date older, Date yonger) throws IOException
- Returns:
- Disk usage for all builds
- Throws:
IOException
-
getLastBuildAction
public BuildDiskUsageAction getLastBuildAction()
-
getBuildsInformation
public Set<DiskUsageBuildInformation> getBuildsInformation() throws IOException
- Throws:
IOException
-
getGraph
public Graph getGraph() throws IOException
Generates a graph with disk usage trend- Throws:
IOException
-
showGraph
public boolean showGraph()
Shortcut for the jelly view
-
-