Package com.cloudbees.simplediskusage
Class UsageComputation
java.lang.Object
com.cloudbees.simplediskusage.UsageComputation
Compute disk usage of a list of paths. Results are published using
listeners registered for interesting paths, so we only walk the disk once.
The walker process is throttled to prevent IO starvation for other Jenkins
tasks.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(Path path, UsageComputation.CompletionListener listener) void
compute()
void
protected void
computeUsage
(Path path) int
protected long
-
Constructor Details
-
UsageComputation
-
-
Method Details
-
addListener
-
getItemsCount
public int getItemsCount() -
compute
- Throws:
IOException
-
computeFS
public void computeFS() -
jenkinsFSUsage
protected long jenkinsFSUsage() -
computeUsage
- Throws:
IOException
-