Package hudson.plugins.disk_usage
Class DiskUsageProperty
- java.lang.Object
-
- hudson.model.JobProperty<Job<?,?>>
-
- hudson.plugins.disk_usage.DiskUsageProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
public class DiskUsageProperty extends JobProperty<Job<?,?>>
This Property sets DiskUsage action.- Author:
- dvrzalik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiskUsageProperty.DiskUsageDescriptor
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
LOGGER
-
Fields inherited from class hudson.model.JobProperty
owner
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description DiskUsageProperty()
-
Method Summary
-
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild
-
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
-
Method Detail
-
getJobActions
public Collection<? extends Action> getJobActions(Job<?,?> job)
- Overrides:
getJobActions
in classJobProperty<Job<?,?>>
-
setDiskUsageWithoutBuilds
public void setDiskUsageWithoutBuilds(Long diskUsageWithoutBuilds)
-
getDiskUsageOfBuilds
public Set<DiskUsageBuildInformation> getDiskUsageOfBuilds()
-
getDiskUsageBuildInformation
public DiskUsageBuildInformation getDiskUsageBuildInformation(String buildId)
-
getAllDiskUsageOfBuild
public Long getAllDiskUsageOfBuild(int buildNumber)
-
getDiskUsageBuildInformation
public DiskUsageBuildInformation getDiskUsageBuildInformation(int buildNumber)
-
getDiskUsageOfBuild
public Long getDiskUsageOfBuild(int buildNumber)
-
getProjectDiskUsage
public ProjectDiskUsage getProjectDiskUsage()
-
getDiskUsage
public ProjectDiskUsage getDiskUsage()
-
setOwner
public void setOwner(Job job)
- Overrides:
setOwner
in classJobProperty<Job<?,?>>
-
putSlaveWorkspace
@Deprecated(forRemoval=true) public void putSlaveWorkspace(Node node, String path)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSlaveWorkspaceUsage
@Deprecated(forRemoval=true) public Map<String,Map<String,Long>> getSlaveWorkspaceUsage()
Deprecated, for removal: This API element is subject to removal in a future version.
-
putSlaveWorkspaceSize
@Deprecated(forRemoval=true) public void putSlaveWorkspaceSize(Node node, String path, Long size)
Deprecated, for removal: This API element is subject to removal in a future version.
-
putAgentWorkspaceSize
public void putAgentWorkspaceSize(@NonNull Node node, String path, Long size)
-
checkWorkspaces
public void checkWorkspaces()
-
checkWorkspaces
public void checkWorkspaces(boolean force)
-
getAllNonSlaveOrCustomWorkspaceSize
@Deprecated(forRemoval=true) public Long getAllNonSlaveOrCustomWorkspaceSize()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getAllNonAgentOrCustomWorkspaceSize
public Long getAllNonAgentOrCustomWorkspaceSize()
-
getAllWorkspaceSize
public Long getAllWorkspaceSize()
-
getDiskUsageWithoutBuilds
public Long getDiskUsageWithoutBuilds()
-
getAllDiskUsageWithoutBuilds
public Long getAllDiskUsageWithoutBuilds()
-
saveDiskUsage
public void saveDiskUsage()
-
loadDiskUsage
public void loadDiskUsage()
-
reconfigure
public JobProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
- Specified by:
reconfigure
in interfaceReconfigurableDescribable<JobProperty<?>>
- Overrides:
reconfigure
in classJobProperty<Job<?,?>>
- Throws:
Descriptor.FormException
-
-