Re: [Geotools-devel] Process extends Callable

2008-04-25 Thread Jody Garnett
Martin Desruisseaux wrote: > So I assume that the interfaces would looks like that: > > public interface Process { > void process(ProgressListener listener); > > // Some input and output methods for parameters > } > > > Would it be appropriate to rename the other interfaces

Re: [Geotools-devel] Process extends Callable

2008-04-25 Thread Martin Desruisseaux
Hello Jody With the example that you gave us yesterday (Callable being serialized toward an other nodes in a cluster), I understand now the importance of comunicating progress/cancelation through the Executor only. So I assume that the interfaces would looks like that: public interface P

Re: [Geotools-devel] Process extends Callable

2008-04-24 Thread Martin Desruisseaux
Jody Garnett a écrit : > nothing in this API says the Callable is even > valid after it has been handed over to the Executor; indeed the Executor > may serialize it out to another machine in a cluster; the Future only > provides a way to get the result of the execution (perhaps the result > has

Re: [Geotools-devel] Process extends Callable

2008-04-24 Thread Jody Garnett
Martin Desruisseaux wrote: > Jody Garnett a écrit : >> So you understand how Executor is isolating the implementor of >> Callable from external influence; in order to have more flexibility >> and control over what is going on. The trade off and motivations for >> their strict design decisions ar

Re: [Geotools-devel] Process extends Callable

2008-04-24 Thread Martin Desruisseaux
Jody Garnett a écrit : > So you understand how Executor is isolating the implementor of Callable > from external influence; in order to have more flexibility and control > over what is going on. The trade off and motivations for their strict > design decisions are clear to you ... do you actuall

Re: [Geotools-devel] Process extends Callable

2008-04-23 Thread Jody Garnett
Martin Desruisseaux wrote: > I'm using them in production (through MosaicImageWriter) before I > suggested those classes last Monday... So you understand how Executor is isolating the implementor of Callable from external influence; in order to have more flexibility and control over what is goin

Re: [Geotools-devel] Process extends Callable

2008-04-23 Thread Martin Desruisseaux
Jody Garnett a écrit : > Hi Martin this is not proving an effective use of either of our time; I > am not sure you understand the design of Executor/Callable/Future. I'm using them in production (through MosaicImageWriter) before I suggested those classes last Monday... However I do not yet und

[Geotools-devel] Process extends Callable

2008-04-22 Thread Jody Garnett
Hi Martin this is not proving an effective use of either of our time; I am not sure you understand the design of Executor/Callable/Future. Many of your questions seem focused on the technicalities of stopping a process; rather than the responsibilities and relationships of the objects involved.