public class TextCollectMonitor extends java.lang.Object implements CollectListener
Modifier and Type | Field and Description |
---|---|
protected long |
bladesize |
protected long |
fullsize |
protected long |
progress |
Constructor and Description |
---|
TextCollectMonitor() |
Modifier and Type | Method and Description |
---|---|
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
|
protected long fullsize
protected long bladesize
protected long progress
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