public class ProgressBean extends Object
Constructor and Description |
---|
ProgressBean() |
Modifier and Type | Method and Description |
---|---|
void |
addProgressCompleteRecords(long complete) |
int |
getElapsedMinutes()
get elapsed minutes
|
int |
getElapsedSeconds()
get elapsed seconds
|
int |
getPercentComplete()
get the percent complete, e.g.
|
long |
getProgressCompleteRecords()
number of records complete so far
|
long |
getProgressTotalRecords()
total records to process (groups * subjects)
|
long |
getStartedMillis()
when this was started, millis since 1970
|
int |
getStatusCountdown()
if there are too many statuses then just quit
|
boolean |
isComplete()
if done importing
|
boolean |
isHasException()
if has exception
|
boolean |
isThisLastStatus()
decrement the status countdown and see if this is the last one
|
void |
setComplete(boolean complete1)
if done importing
|
void |
setHasException(boolean hasException1)
if has exception
|
void |
setProgressCompleteRecords(long progressCompleteRecords1)
number of records complete so far
|
void |
setProgressTotalRecords(long progressTotalRecords1)
total records to process (groups * subjects)
|
void |
setStartedMillis(long started1)
when this was started, millis since 1970
|
void |
setStatusCountdown(int statusCountdown1)
if there are too many statuses then just quit
|
public boolean isThisLastStatus()
public int getElapsedSeconds()
public int getElapsedMinutes()
public int getPercentComplete()
public long getProgressCompleteRecords()
public void addProgressCompleteRecords(long complete)
public long getProgressTotalRecords()
public long getStartedMillis()
public int getStatusCountdown()
public boolean isComplete()
public boolean isHasException()
public void setComplete(boolean complete1)
complete1
- the complete to setpublic void setHasException(boolean hasException1)
hasException1
- the hasException to setpublic void setProgressCompleteRecords(long progressCompleteRecords1)
progressCompleteRecords1
- the progressCompleteRecords to setpublic void setProgressTotalRecords(long progressTotalRecords1)
progressTotalRecords1
- the progressTotalRecords to setpublic void setStartedMillis(long started1)
started1
- the ssetStartedMillistartedMillispublic void setStatusCountdown(int statusCountdown1)
statusCountdown1
- the statusCountdown to setCopyright © 2016 Internet2. All rights reserved.