Sorry I don't have an answer, but would also be interested in knowing how to do this. I will dig around today in the meantime.
On May 4, 3:10 pm, Jerome <jerome.mou...@gmail.com> wrote: > I would like my app to inform the visitor we are in maintenance, such > as it does not let them do operations that will fail when we try to > write in the Data Store. > > Last week, I implemented the code snipped as documented at the bottom > of this page:http://code.google.com/appengine/docs/java/howto/maintenance.html > > public static boolean isGAEDowntime() { > MemcacheService ms = > MemcacheServiceFactory.getMemcacheService(); > ms.setErrorHandler(new StrictErrorHandler()); > > try { > ms.put("test", "test"); > } catch > (com.google.appengine.api.memcache.MemcacheServiceException > e) { > return true; > } > return false; > } > > But, during the downtime, this method was still return false. > > What is the best option to figure out we are in the downtime period? > > Jerome > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.