On Sun, Jun 10, 2012 at 5:34 AM, Martin Davis <mda...@opengeo.org> wrote:
>> One borderline case would be a process that has no support for progress
>> notification, yet can take long and is not streaming.
>> I'd argue such process is likely broken, but implementors might argue back
>> that adding progress support is too much of a overhead.
>
>
> Actually this kind of thing is not too uncommon in geometric algorithms.
>  There are algorithms for which it is hard or inefficient to determine the
> progress (eg. as a percentage), but which take a long time and cannot easily
> be streamed.  Sometimes there are alternatives which can be streamed, but
> the implementation is either unknown or a research problem.  A classic
> example is Delaunay Triangulation over input of unknown size (eg streamed).
>  Buffer is another example.
>
> But surely these still be called as asynch, but with no feedback on
> intermediate progress?  And with no ability to stream the output it would be
> *better* to make the call asynch (for the reason mentioned of unreliable
> network).

Yep, there is no need to have progress listener support to make a process
asynch.
But it'll tell you, processes that take longer than 10-30 seconds get users
pretty upset in case there is no progress listener attached.
Actually that's another fallacy in the WPS spec, it would be nice to know
that a process takes long but has no way to report progress, as the front
end GUI for it (if there is one) could use one of those undeterminate
progress reports instead of being pegged at 0% all the time...

>> One could say that a class can get new fields, and I would agree, but it
>> you
>> have a need that the community does not share you're forced into a fork,
>> a map is more lenient in that direction.
>> I'd prefer an open ended map with well known keys for the reasons above
>>
> Fair enough.  I suppose as long as the keys are named constants it's still
> possible to find where they are set and read.
>
> Was there ever any thought about using named subclasses of HashMap to make
> usage context clear?

I don't believe we ever did that. You can color a map blue with yellow stripes,
but it's still a map :-p

Cheers
Andrea


-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to