|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.extensions.ScanResults
public class ScanResults
Holds information about the results of a scan for new/deleted/updated extensions.
ExtensionsControl.installAndUpdateExtensions(boolean)
Nested Class Summary | |
---|---|
static class |
ScanResults.FileResults
Scan results for a single XML or JAR file. |
Field Summary | |
---|---|
private long |
endTime
|
private Map<ExtensionsFile,ScanResults.FileResults> |
fileResults
|
private boolean |
forceUpdate
|
private boolean |
hasError
|
private boolean |
manualScan
|
private int |
numErrorFiles
|
private long |
startTime
|
private String |
summary
|
Constructor Summary | |
---|---|
ScanResults(boolean manualScan,
boolean forceUpdate)
Create a new scan results object. |
Method Summary | |
---|---|
(package private) void |
addErrorMessage(ExtensionsFile extFile,
String message)
Adds a detail message inidcating a failed operation to a file. |
(package private) void |
addMessage(ExtensionsFile extFile,
String message)
Adds a detail message indicating a successful operation to a file. |
private void |
addMessage(ExtensionsFile extFile,
String message,
boolean error)
|
long |
getEndTime()
Get the end time of the scan as a millisecond value. |
Collection<ExtensionsFile> |
getFiles()
Get all extension files that was handled in the last scan. |
int |
getNumErrorFiles()
The number of extension files that could not be completely loaded because of an error. |
ScanResults.FileResults |
getResults(ExtensionsFile extFile)
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. |
(package private) void |
setEnded()
Set the end time of the scan |
(package private) void |
setStatus(ExtensionsFile extFile,
String status)
Sets the short status message for an entire file. |
(package private) void |
setSummary(String summary)
|
boolean |
wasForceUpdate()
|
boolean |
wasManual()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final boolean manualScan
private final boolean forceUpdate
private final long startTime
private Map<ExtensionsFile,ScanResults.FileResults> fileResults
private boolean hasError
private int numErrorFiles
private long endTime
private String summary
Constructor Detail |
---|
public ScanResults(boolean manualScan, boolean forceUpdate)
manualScan
- TRUE if this is a manual scan,
FALSE if it is an automatic scanforceUpdate
- TRUE if the scan is forcing update of already
installed extensions, FALSE otherwiseMethod Detail |
---|
void setEnded()
public long getStartTime()
System.currentTimeMillis()
public long getEndTime()
System.currentTimeMillis()
public String getSummary()
void setSummary(String summary)
public boolean wasManual()
public boolean wasForceUpdate()
public boolean hasError()
getResults(ExtensionsFile)
.
public int getNumErrorFiles()
public Collection<ExtensionsFile> getFiles()
ExtensionsFile
:spublic ScanResults.FileResults getResults(ExtensionsFile extFile)
extFile
- The extensions file to get the results for
ScanResults.FileResults
object or null if the
extensions file is not foundvoid setStatus(ExtensionsFile extFile, String status)
extFile
- The file to set the status onstatus
- The status messageaddMessage(ExtensionsFile, String)
,
addErrorMessage(ExtensionsFile, String)
void addMessage(ExtensionsFile extFile, String message)
extFile
- The file to add the message tomessage
- The messageaddErrorMessage(ExtensionsFile, String)
void addErrorMessage(ExtensionsFile extFile, String message)
extFile
- The file to add the message tomessage
- The messageprivate void addMessage(ExtensionsFile extFile, String message, boolean error)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |