public final class JobSize extends Object
Modifier | Constructor and Description |
---|---|
protected |
JobSize(Job job,
long contextSize,
long outputSize,
long logSize) |
Modifier and Type | Method and Description |
---|---|
long |
getContextSize() |
protected static long |
getContextSize(JobId id) |
protected static long |
getDirSize(File dir)
Computes the size of the directory by recursively walking through
and summing up the file and folder sizes
|
Job |
getJob() |
long |
getLogSize() |
protected static long |
getLogSize(JobId id) |
long |
getOutputSize() |
protected static long |
getOutputSize(JobId id) |
static JobSize |
getSize(Job job) |
static Iterable<JobSize> |
getSizes(Iterable<Job> jobs)
Returns the job sizes for a collection of jobs
|
long |
getSum()
Return the sum of all three sizes
|
static long |
getTotal(Iterable<JobSize> sizes) |
protected JobSize(Job job, long contextSize, long outputSize, long logSize)
job
- contextSize
- outputSize
- logSize
- public long getContextSize()
public long getOutputSize()
public long getLogSize()
public Job getJob()
public long getSum()
public static Iterable<JobSize> getSizes(Iterable<Job> jobs)
protected static long getLogSize(JobId id)
protected static long getContextSize(JobId id) throws IOException
IOException
protected static long getOutputSize(JobId id) throws IOException
IOException
protected static long getDirSize(File dir)
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.