|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.util.TextCollectMonitor
public class TextCollectMonitor
Field Summary | |
---|---|
protected long |
bladesize
|
protected long |
fullsize
|
protected long |
progress
|
Constructor Summary | |
---|---|
TextCollectMonitor()
|
Method Summary | |
---|---|
void |
bladeCollectStart(java.lang.String bladeId,
long size)
Called before collecting test results from a blade. |
void |
collectStart(java.lang.String testId,
long size)
Called at the collect beginning. |
void |
done()
Called when the full collect is complete. |
boolean |
isCanceled()
Called an arbitrarily number of times at arbitrary moments during a collect to ensure the collect must go on or be canceled. |
boolean |
isCanceled(java.lang.String bladeId)
Called an arbitrarily number of times at arbitrary moments during a collect to ensure the collect must go on or be canceled for the given blade. |
void |
progress(java.lang.String bladeId,
long done)
Called an arbitrary number of times when collecting test results from a blade to give current progress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long fullsize
protected long bladesize
protected long progress
Constructor Detail |
---|
public TextCollectMonitor()
Method Detail |
---|
public void collectStart(java.lang.String testId, long size)
CollectListener
collectStart
in interface CollectListener
testId
- the identifier of the test to be collectedsize
- the total number of bytes to be collectedpublic void bladeCollectStart(java.lang.String bladeId, long size)
CollectListener
bladeCollectStart
in interface CollectListener
bladeId
- the identifier of the blade about to be collectedsize
- the total number of bytes to collect from the given bladepublic void progress(java.lang.String bladeId, long done)
CollectListener
progress
in interface CollectListener
bladeId
- the identifier of the blade test results are being collected fromdone
- number of bytes already collected (cannot decrease, nor be
greater then the size given in the preliminary bladeCollectStart call)public void done()
CollectListener
done
in interface CollectListener
public boolean isCanceled()
CollectListener
isCanceled
in interface CollectListener
public boolean isCanceled(java.lang.String bladeId)
CollectListener
isCanceled
in interface CollectListener
bladeId
- the identifier of the considered blade
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |