public class ImportStatus extends java.lang.Object implements ImportConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG
Constructor and Description |
---|
ImportStatus() |
ImportStatus(java.lang.String logEntry) |
Modifier and Type | Method and Description |
---|---|
void |
addFileError(java.lang.String filename) |
void |
addFileSuccess(java.lang.String filename) |
void |
addImportedData(Data data) |
java.lang.String |
getBatch() |
int |
getConflictCount() |
int |
getCreateCount() |
int |
getDataCount() |
java.lang.String |
getErrorMsg() |
java.io.File |
getFile() |
int |
getFileCount() |
int |
getFileErrorCount() |
java.util.List |
getFileErrorList() |
java.util.List |
getFileSuccessList() |
java.util.Date |
getGreatestMdate()
Returns the greatest mdate.
|
java.lang.String |
getHost()
Returns the host bound to the URL
|
java.util.Date |
getImportDate() |
java.util.Set<Data> |
getImportedDataSet() |
java.lang.String |
getResource()
Returns the resource used to performed the import (i.e. the file or the url).
|
ImportSource |
getSource() |
long |
getStartTime() |
long |
getTime()
Returns the time (duration) of the import.
|
int |
getUpdateCount() |
java.lang.String |
getUrl() |
int |
getWriteCount()
Returns the number of writes done during this import.
|
boolean |
hasFailed()
Returns true if the import was in error.
|
void |
incConflictCount() |
void |
incCreateCount() |
void |
incDataCount() |
void |
incUpdateCount() |
boolean |
isFile()
Returns true if the import has been done from a file.
|
boolean |
isMilestoneAdded() |
boolean |
isSuccess() |
boolean |
isText()
Returns true if the import has been done from a text.
|
boolean |
isUrl()
Returns true if the import has been done from an URL.
|
void |
setBatch(java.lang.String batch) |
void |
setConflictCount(int conflictCount) |
void |
setCreateCount(int createCount) |
void |
setDataCount(int dataCount) |
void |
setEndTime(long endTime) |
void |
setErrorMsg(java.lang.String errorMsg) |
void |
setFile(java.io.File file) |
void |
setFileCount(int fileCount) |
void |
setFileErrorCount(int fileErrorCount) |
void |
setImportDate(java.util.Date importDate) |
void |
setMilestoneAdded(boolean milestoneAdded) |
void |
setSource(ImportSource source) |
void |
setStartTime(long startTime) |
void |
setSuccess(boolean success) |
void |
setTime(long time)
Sets the time (duration) of the import.
|
void |
setUpdateCount(int updateCount) |
void |
setUrl(java.lang.String url) |
java.lang.String |
toString() |
void |
updateGreatestMdate(java.util.Date mdate)
Update the greatest imported mdate with the given date.
|
public static final java.lang.String REVISION
public ImportStatus()
public ImportStatus(java.lang.String logEntry) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getHost()
public java.lang.String getResource()
public boolean isText()
public boolean isFile()
public boolean isUrl()
public long getTime()
public void setTime(long time)
time
- the time (duration) to set.public java.io.File getFile()
public void setFile(java.io.File file)
file
- the file to setpublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the url to setpublic long getStartTime()
public void setStartTime(long startTime)
startTime
- the startTime to setpublic void addImportedData(Data data)
data
- the imported data to add.public java.util.Set<Data> getImportedDataSet()
public void incDataCount()
public void incCreateCount()
public void incUpdateCount()
public void incConflictCount()
public void addFileSuccess(java.lang.String filename)
public java.util.List getFileSuccessList()
public void addFileError(java.lang.String filename)
public java.util.List getFileErrorList()
public void updateGreatestMdate(java.util.Date mdate)
mdate
- an imported mdatepublic java.util.Date getGreatestMdate()
public boolean hasFailed()
public int getWriteCount()
public boolean isSuccess()
public void setSuccess(boolean success)
success
- the success to setpublic ImportSource getSource()
public void setSource(ImportSource source)
source
- the source to setpublic java.lang.String getBatch()
public void setBatch(java.lang.String batch)
batch
- the batch to setpublic int getDataCount()
public void setDataCount(int dataCount)
dataCount
- the dataCount to setpublic int getCreateCount()
public void setCreateCount(int createCount)
createCount
- the createCount to setpublic int getUpdateCount()
public void setUpdateCount(int updateCount)
updateCount
- the updateCount to setpublic int getConflictCount()
public void setConflictCount(int conflictCount)
conflictCount
- the conflictCount to setpublic int getFileCount()
public void setFileCount(int fileCount)
fileCount
- the fileCount to setpublic int getFileErrorCount()
public void setFileErrorCount(int fileErrorCount)
fileErrorCount
- the fileErrorCount to setpublic void setEndTime(long endTime)
endTime
- the endTime to setpublic java.lang.String getErrorMsg()
public void setErrorMsg(java.lang.String errorMsg)
errorMsg
- the errorMsg to setpublic java.util.Date getImportDate()
public void setImportDate(java.util.Date importDate)
importDate
- the importDate to setpublic boolean isMilestoneAdded()
public void setMilestoneAdded(boolean milestoneAdded)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.