Hi Hasan, we actually have a ticket in the issue tracker already for this topic: https://osgeo-org.atlassian.net/browse/GEOT-4727
I'm not aware of actually planned work. If you want to add support for it I suggest you to discuss it on geoserver-devel, showing a plan of how you would do it,, and then make a pull request matching the requirements in the contributor's guide: https://github.com/geotools/geotools/blob/master/CONTRIBUTING.md Cheers Andrea On Mon, Jun 29, 2015 at 7:02 PM, Hasan Riaz <hasa...@gmail.com> wrote: > Hi Jody, > is there anything planned in the future for such a notion where a query > timeout is introduced? Another question I have is, if such a concept is > introduced, would the geotools community accept change sets? > Thanks, > Hasan > > On Mon, Jun 29, 2015 at 10:53 AM, Jody Garnett <jody.garn...@gmail.com> > wrote: > >> A few of the datastore, such as WFS, do support a timeout being supplied >> as one of the connection parameters. >> >> There is no general solution since each backend format is different.You >> can always do the query in a seperate thread, or use a watchdog thread or >> time throw you an interrupt. >> >> >> >> -- >> Jody Garnett >> >> On 18 June 2015 at 08:55, Hasan Riaz <hasa...@gmail.com> wrote: >> >>> Hello, >>> I am using a JDBCDatastore with a postgres database. In order to fetch >>> the geospatial data from the database via the following code: >>> >>> SimpleFeatureSource featureSource = dataStore.getFeatureSource(name); >>> >>> where the dataStore is configured using the documentation( >>> http://docs.geotools.org/stable/userguide/library/jdbc/datastore.html) >>> and the name is a specific table name or view >>> Thereafter, I run a query against the given featureSource via the >>> following code: >>> >>> SimpleFeatureCollection collection = featureSource.getFeatures(query); >>> SimpleFeatureIterator iterator = collection.features(); >>> >>> This works fairly well under normal circumstances. In non performant >>> queries though, the queries take a long time. >>> >>> My question is, is there a way to time out a query if the execution time >>> has passed a certain time in the database? >>> >>> Thanks, >>> Hasan >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> GeoTools-GT2-Users mailing list >>> GeoTools-GT2-Users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>> >>> >> > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003* Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc. -------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users