* Notify clients listening to our ClientEventProducer of the current progress, in the form of a
* SplitfileProgressEvent.
*/
@Override
protected void innerNotifyClients(ClientContext context) {
SplitfileProgressEvent e;
synchronized(this) {
int total = this.totalBlocks;
int minSuccess = this.minSuccessBlocks;
boolean finalized = blockSetFinalized;
if(this.finalBlocksRequired != 0) {
total = finalBlocksTotal;
minSuccess = finalBlocksRequired;
finalized = true;
}
e = new SplitfileProgressEvent(total, this.successfulBlocks, this.failedBlocks, this.fatallyFailedBlocks, minSuccess, 0, finalized);
}
// Already off-thread.
ctx.eventProducer.produceEvent(e, context);
}