Hi,
I’m proposing we add a new method to the GeoServerLifecycleHandler interface:
/**
- Called when a reload is starting, see onReload for a notification that the reload ended
*/
void beforeReload();
The method will allow implementors to do special actions during the reload period,
and the implementation in GeoServerImpl will make sure once beforeReload() is
called, a call to onReload() is guaranteed().
Use cases for this method:
- interact with a custom servlet filter that will block all incoming ogc requests
during the reload (they will likely fail anyways) - notify load balancers and put the node temporary out of the pool
The change will affect all implementations of GeoServerLifecycleHandler and break them, of course all
the ones in GeoServer will be fixed. Given this, no attempt to backport the change will be made
(GeoServerLifecycleHandler is after all a pluggable interface, everybody can implement
it and use it custom extensions).
Cheers
Andrea
–
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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