|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.dataimport.impl.ImportRunningJobImpl
public class ImportRunningJobImpl
Represents a running import job.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
ImportRunningJobImpl()
|
Method Summary | |
---|---|
void |
addBadRow(ImportBadRow importBadRow)
Add an ImportBadRow . |
java.util.List |
getBadRows()
Returns a list of ImportBadRow . |
int |
getCurrentRow()
Returns the current row number is in importing. |
java.util.Date |
getEndTime()
Returns the import job end time. |
int |
getFailedRows()
Returns the row number that failed the imported. |
ImportJob |
getImportJob()
Returns the import job that is running. |
int |
getLeftRows()
Returns the left rows to import. |
java.util.Date |
getStartTime()
Returns the import job start time. |
int |
getSucceededRows()
Returns the row number that has been imported successfully. |
int |
getTotalRows()
Returns the total number of rows to import. |
boolean |
isFinished()
Returns true if the job is finished, otherwise, false . |
void |
setCurrentRow(int currentRow)
Set the current row number. |
void |
setFinished()
Sets the finished flag to true . |
void |
setImportJob(ImportJob importJob)
Set the import job to run. |
void |
updateFailedRows(int num)
Adds the given number to the failed rows number. |
void |
updateSucceededRows(int num)
Adds the given number to the succeeded rows number. |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public ImportRunningJobImpl()
Method Detail |
---|
public void addBadRow(ImportBadRow importBadRow)
ImportBadRow
.
addBadRow
in interface ImportRunningJob
importBadRow
- the import bad row to add.public java.util.List getBadRows()
ImportBadRow
.
getBadRows
in interface ImportRunningJob
ImportBadRow
public int getCurrentRow()
getCurrentRow
in interface ImportRunningJob
public java.util.Date getEndTime()
getEndTime
in interface ImportRunningJob
public int getFailedRows()
getFailedRows
in interface ImportRunningJob
public ImportJob getImportJob()
getImportJob
in interface ImportRunningJob
public int getLeftRows()
getLeftRows
in interface ImportRunningJob
public java.util.Date getStartTime()
getStartTime
in interface ImportRunningJob
public int getSucceededRows()
getSucceededRows
in interface ImportRunningJob
public int getTotalRows()
getTotalRows
in interface ImportRunningJob
public boolean isFinished()
true
if the job is finished, otherwise, false
.
isFinished
in interface ImportRunningJob
true
if the job is finished, otherwise, false
public void setCurrentRow(int currentRow)
setCurrentRow
in interface ImportRunningJob
currentRow
- the current row numberpublic void setFinished()
true
.
setFinished
in interface ImportRunningJob
public void setImportJob(ImportJob importJob)
setImportJob
in interface ImportRunningJob
importJob
- the import job to setpublic void updateFailedRows(int num)
updateFailedRows
in interface ImportRunningJob
num
- the numberpublic void updateSucceededRows(int num)
updateSucceededRows
in interface ImportRunningJob
num
- the number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |