public interface JiffleProgressListener
JiffleExecutor
.
At run-time, the executor passes the progress listener to the
JiffleRuntime
object and it is the this object that updates the
listener in its JiffleDirectRuntime.evaluateAll(it.geosolutions.jaiext.jiffle.runtime.JiffleProgressListener)
method.
Modifier and Type | Method and Description |
---|---|
void |
finish()
Called by the runtime object when the task finishes.
|
long |
getUpdateInterval()
Called by the runtime object before processing begins to get
the update interval as number of destination image pixels.
|
void |
setTaskSize(long numPixels)
Called by the runtime object to inform the listener of the total
number of pixels in the largest destination image that will be
processed.
|
void |
setUpdateInterval(double propPixels)
Called by the client to request that the listener be notified
of task progress after each
propPixels proportion of the
destination pixels has been processed by the runtime object. |
void |
setUpdateInterval(long numPixels)
Called by the client to request that the listener be notified
of task progress after each
numPixels number of destination
pixels have been processed by the runtime object. |
void |
start()
Called by the runtime object when the task starts.
|
void |
update(long done)
Called by the runtime object at update intervals as specified by
either
setUpdateInterval(long) or setUpdateInterval(double) . |
void setUpdateInterval(long numPixels)
numPixels
number of destination
pixels have been processed by the runtime object.numPixels
- number of pixels between listener updatesvoid setUpdateInterval(double propPixels)
propPixels
proportion of the
destination pixels has been processed by the runtime object.propPixels
- proportion of pixels between listener updateslong getUpdateInterval()
void setTaskSize(long numPixels)
numPixels
- number of destination image pixelsvoid start()
void update(long done)
setUpdateInterval(long)
or setUpdateInterval(double)
.
It is important to keep the amount of processing done in this method to a minimum.
done
- number of pixels processedvoid finish()
Copyright © 2006–2018 GeoSolutions. All rights reserved.