public class RepositoryStatistics extends Object
| Constructor and Description |
|---|
RepositoryStatistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Collection<FileStatistics> statistics) |
boolean |
contains(String fileName)
Returns whether the specified file is part of the repository.
|
FileStatistics |
get(String fileName)
Returns the statistics for the specified file.
|
List<String> |
getErrorMessages() |
Set<String> |
getFiles()
Returns the absolute file names of the files that are part of the repository.
|
Collection<FileStatistics> |
getFileStatistics()
Returns the statistics for all repository files.
|
List<String> |
getInfoMessages() |
boolean |
isEmpty()
Returns whether the repository is empty.
|
void |
logError(String format,
Object... args)
Logs the specified error message.
|
void |
logException(Exception exception,
String format,
Object... args)
Logs the specified exception.
|
void |
logInfo(String format,
Object... args)
Logs the specified information message.
|
void |
logSummary()
Writes a summary message to the reports' error log that denotes the total number of errors that have been
reported.
|
int |
size()
Returns the number of files in the repository.
|
public boolean isEmpty()
true if the repository is empty, false otherwisepublic int size()
public boolean contains(String fileName)
fileName - the name of the filetrue if the file file is part of the repository, false otherwisepublic Set<String> getFiles()
public Collection<FileStatistics> getFileStatistics()
public FileStatistics get(String fileName)
fileName - absolute file nameNoSuchElementException - if the file name is not registered@FormatMethod public void logInfo(String format, Object... args)
format - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.@FormatMethod public void logError(String format, Object... args)
format - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.@FormatMethod public void logException(Exception exception, String format, Object... args)
exception - the exception to logformat - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.public void logSummary()
public void addAll(Collection<FileStatistics> statistics)
Copyright © 2016–2019. All rights reserved.