|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.extensions.manager.ProcessResults
public class ProcessResults
Class for collecting results from a scan for new/deleted/updated extensions.
Nested Class Summary | |
---|---|
static class |
ProcessResults.FileResults
Scan results for a single XML or JAR file. |
Field Summary | |
---|---|
private long |
endTime
|
private Map<ExtensionsFile,ProcessResults.FileResults> |
fileResults
|
private boolean |
hasError
|
private int |
numErrorFiles
|
private long |
startTime
|
private String |
summary
|
Constructor Summary | |
---|---|
ProcessResults()
Create a new process results object. |
Method Summary | |
---|---|
void |
addErrorMessage(ExtensionsFile xtFile,
String message)
Adds a detailed message inidcating a failed operation to a file. |
void |
addMessage(ExtensionsFile xtFile,
String message)
Adds a detailed message indicating a successful operation to a file. |
private void |
addMessage(ExtensionsFile xtFile,
String message,
boolean error)
|
List<ProcessResults.FileResults> |
getAllResults()
|
long |
getEndTime()
Get the end time of the scan as a millisecond value. |
int |
getNumErrorFiles()
The number of extension files that could not be completely loaded because of an error. |
ProcessResults.FileResults |
getResults(ExtensionsFile xtFile)
Get the results for a specific extensions file. |
long |
getStartTime()
Get the start time of the scan as a millisecond value. |
String |
getSummary()
Get a summary of the scan results as a textual description. |
boolean |
hasError()
Check if the scan was successful or not. |
void |
setEnded()
Set the end time of the scan. |
void |
setStatus(ExtensionsFile xtFile,
String status)
Sets a short overall status message for an entire file. |
void |
setSummary(String summary)
Set a summary of the results. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final long startTime
private Map<ExtensionsFile,ProcessResults.FileResults> fileResults
private boolean hasError
private int numErrorFiles
private long endTime
private String summary
Constructor Detail |
---|
public ProcessResults()
Method Detail |
---|
public long getStartTime()
System.currentTimeMillis()
public long getEndTime()
System.currentTimeMillis()
public void setEnded()
public String getSummary()
public void setSummary(String summary)
public boolean hasError()
getResults(ExtensionsFile)
.
public int getNumErrorFiles()
public List<ProcessResults.FileResults> getAllResults()
public ProcessResults.FileResults getResults(ExtensionsFile xtFile)
xtFile
- The extensions file to get the results for
ProcessResults.FileResults
object or null if the
extensions file is not foundpublic void setStatus(ExtensionsFile xtFile, String status)
xtFile
- The file to set the status onstatus
- The status messageaddMessage(ExtensionsFile, String)
,
addErrorMessage(ExtensionsFile, String)
public void addMessage(ExtensionsFile xtFile, String message)
xtFile
- The file to add the message tomessage
- The messageaddErrorMessage(ExtensionsFile, String)
public void addErrorMessage(ExtensionsFile xtFile, String message)
xtFile
- The file to add the message tomessage
- The messageprivate void addMessage(ExtensionsFile xtFile, String message, boolean error)
|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |