| java.lang.Object it.geosolutions.utils.progress.ProgressManager
All known Subclasses: it.geosolutions.utils.imagemosaic.MosaicIndexBuilder, it.geosolutions.utils.coveragetiler.CoverageTiler, it.geosolutions.utils.imagepyramid.PyramidLayerBuilder, it.geosolutions.utils.imageoverviews.OverviewsEmbedder, it.geosolutions.utils.imagepyramid.PyramidBuilder,
ProgressManager | abstract public class ProgressManager (Code) | | |
Inner Class :final protected static class ProgressEventDispatchThreadEventLauncher implements Runnable | |
Field Summary | |
final protected ArgumentBuilder | arguments | protected CommandLine | cmdLine | final protected List | cmdOpts Options for the command line. | final protected Parser | cmdParser | protected Option | helpOpt | final protected DefaultOptionBuilder | optionBuilder | protected Group | optionsGroup | protected int | priority Default priority for the underlying
Thread . | protected DefaultOption | priorityOpt | final protected boolean | sendDelayedMessages Set this to false for command line UIs where the delayed event sending may prevent some
messages to be seen before the tool exits, to true for real GUI where you don't want
the processing to be blocked too long, or when you have slow listeners in general. | protected DefaultOption | versionOpt |
arguments | final protected ArgumentBuilder arguments(Code) | | |
cmdLine | protected CommandLine cmdLine(Code) | | |
cmdOpts | final protected List cmdOpts(Code) | | Options for the command line.
|
cmdParser | final protected Parser cmdParser(Code) | | |
helpOpt | protected Option helpOpt(Code) | | |
optionBuilder | final protected DefaultOptionBuilder optionBuilder(Code) | | |
optionsGroup | protected Group optionsGroup(Code) | | |
priority | protected int priority(Code) | | Default priority for the underlying
Thread .
|
priorityOpt | protected DefaultOption priorityOpt(Code) | | |
sendDelayedMessages | final protected boolean sendDelayedMessages(Code) | | Set this to false for command line UIs where the delayed event sending may prevent some
messages to be seen before the tool exits, to true for real GUI where you don't want
the processing to be blocked too long, or when you have slow listeners in general.
|
versionOpt | protected DefaultOption versionOpt(Code) | | |
ProgressManager | public ProgressManager()(Code) | | |
addProcessingEventListener | final public synchronized void addProcessingEventListener(ProcessingEventListener listener)(Code) | | Adding a listener for the notifications.
Parameters: listener - |
fireEvent | protected synchronized void fireEvent(String string, double percentage)(Code) | | Firing an event to listeners in order to inform them about what we are
doing and about the percentage of work already carried out.
Parameters: string - The message to show. Parameters: percentage - The percentage for the process. |
fireException | protected synchronized void fireException(String string, double percentage, Exception ex)(Code) | | Firing an exception event to listeners in order to inform them that processing
broke and we can no longer proceed
Parameters: string - The message to show. Parameters: percentage - The percentage for the process. Parameters: ex - the actual exception occurred |
fireException | protected synchronized void fireException(Exception ex)(Code) | | Firing an exception event to listeners in order to inform them that processing
broke and we can no longer proceed. This is a convenience method, it will call
ProgressManager.fireException(String,double,Exception) with the exception message and -1 as
percentage.
Parameters: ex - the actual exception occurred |
getStopThread | final public boolean getStopThread()(Code) | | Should this thread be stopped?
|
removeAllProcessingEventListeners | final public synchronized void removeAllProcessingEventListeners()(Code) | | Removing all the listeners.
|
removeProcessingEventListener | final public synchronized void removeProcessingEventListener(ProcessingEventListener listener)(Code) | | Removing a listener.
Parameters: listener - |
run | abstract public void run()(Code) | | |
sendEvent | protected void sendEvent(ProgressEventDispatchThreadEventLauncher eventLauncher)(Code) | | |
stopThread | final public void stopThread()(Code) | | Stop this thread.
Parameters: stop - |
|
|