public class ProgressLogger extends java.lang.Object implements ProgressLoggerInterface
| Constructor and Description |
|---|
ProgressLogger(Log log)
Construct a progress logger with the desired log, the verb "Processed" and a period of 1m records.
|
ProgressLogger(Log log,
int n)
Construct a progress logger with the desired log and frequency and the verb "Processed".
|
ProgressLogger(Log log,
int n,
java.lang.String verb)
Construct a progress logger.
|
ProgressLogger(Log log,
int n,
java.lang.String verb,
java.lang.String noun)
Construct a progress logger.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns the count of records processed.
|
long |
getElapsedSeconds()
Returns the number of seconds since progress tracking began.
|
boolean |
record(SAMRecord... recs)
Records multiple SAMRecords and triggers logging if necessary.
|
boolean |
record(SAMRecord rec)
Records that a given record has been processed and triggers logging if necessary.
|
boolean |
record(java.lang.String chrom,
int pos) |
public ProgressLogger(Log log, int n, java.lang.String verb, java.lang.String noun)
log - the Log object to write outputs ton - the frequency with which to output (i.e. every N records)verb - the verb to log, e.g. "Processed, Read, Written".noun - the noun to use when logging, e.g. "Records, Variants, Loci"public ProgressLogger(Log log, int n, java.lang.String verb)
log - the Log object to write outputs ton - the frequency with which to output (i.e. every N records)verb - the verb to log, e.g. "Processed, Read, Written".public ProgressLogger(Log log, int n)
log - the Log object to write outputs ton - the frequency with which to output (i.e. every N records)public ProgressLogger(Log log)
log - the Log object to write outputs topublic boolean record(java.lang.String chrom,
int pos)
record in interface ProgressLoggerInterfacepublic boolean record(SAMRecord rec)
record in interface ProgressLoggerInterfacepublic boolean record(SAMRecord... recs)
record in interface ProgressLoggerInterfacepublic long getCount()
public long getElapsedSeconds()