Package org.ow2.clif.util
Class TextCollectMonitor
- java.lang.Object
-
- org.ow2.clif.util.TextCollectMonitor
-
- All Implemented Interfaces:
CollectListener
public class TextCollectMonitor extends java.lang.Object implements CollectListener
- Author:
- Bruno Dillenseger
-
-
Constructor Summary
Constructors Constructor Description TextCollectMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbladeCollectStart(java.lang.String bladeId, long size)Called before collecting test results from a blade.voidcollectStart(java.lang.String testId, long size)Called at the collect beginning.voiddone()Called when the full collect is complete.booleanisCanceled()Called an arbitrarily number of times at arbitrary moments during a collect to ensure the collect must go on or be canceled.booleanisCanceled(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.voidprogress(java.lang.String bladeId, long done)Called an arbitrary number of times when collecting test results from a blade to give current progress
-
-
-
Method Detail
-
collectStart
public void collectStart(java.lang.String testId, long size)Description copied from interface:CollectListenerCalled at the collect beginning.- Specified by:
collectStartin interfaceCollectListener- Parameters:
testId- the identifier of the test to be collectedsize- the total number of bytes to be collected
-
bladeCollectStart
public void bladeCollectStart(java.lang.String bladeId, long size)Description copied from interface:CollectListenerCalled before collecting test results from a blade.- Specified by:
bladeCollectStartin interfaceCollectListener- Parameters:
bladeId- the identifier of the blade about to be collectedsize- the total number of bytes to collect from the given blade
-
progress
public void progress(java.lang.String bladeId, long done)Description copied from interface:CollectListenerCalled an arbitrary number of times when collecting test results from a blade to give current progress- Specified by:
progressin interfaceCollectListener- Parameters:
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)
-
done
public void done()
Description copied from interface:CollectListenerCalled when the full collect is complete.- Specified by:
donein interfaceCollectListener
-
isCanceled
public boolean isCanceled()
Description copied from interface:CollectListenerCalled an arbitrarily number of times at arbitrary moments during a collect to ensure the collect must go on or be canceled.- Specified by:
isCanceledin interfaceCollectListener- Returns:
- true if the full collect must be canceled, false to go on.
-
isCanceled
public boolean isCanceled(java.lang.String bladeId)
Description copied from interface:CollectListenerCalled 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.- Specified by:
isCanceledin interfaceCollectListener- Parameters:
bladeId- the identifier of the considered blade- Returns:
- true if the full collect must be canceled for the given blade, false to go on.
-
-