Salve All,
I have a question, more like a request for advice.
In one of my projects has come the need to have some sort of Layer/FeatureType TTL/self deleting mechanism.
The FeatureTypes are related to a database storage resource.
Is there something that resembles this use-case and if there is none, do you have some advice how to implement it?
I did come up with the following:
- Modify the FeatureType schema by adding some kind a new property, is it feasable?
- Modify only the FeatureType schema implementation, and then delete all layers that reference a FeatureType?
Thanks in advance
--
Cosmin Cioranu
This might have been better posted to geoserver-users, but presumably
whatever does the setup could just add a cron job to do a REST API delete
later.
Brad
Salve,
So obvious (REST call), it should work great.
Given my setup I was caught into my own design and I was thinking to something complicated to be implemented, elegantly nice (an asynchronous thread that analyzes some meta information and decides when the featuretype(and the layers) should be evicted from the available pool), really prone to defects and bugs ;), when the solution was in front of me.
Thanks guys
Sorry for the dumb question.
Thanks and have a nice day.
CC
On Tue, 03 Jul 2018 12:23:57 +0300, <bradh@anonymised.com> wrote:
This might have been better posted to geoserver-users, but presumably
whatever does the setup could just add a cron job to do a REST API delete
later.
Brad
--
Cosmin Cioranu