I refer to the most recent post to above-named thread dated 9th
November 2010, of link

http://groups.google.com/group/google-appengine-java/browse_thread/thread/d70d5a82b5db6851/ff32520adb83aeda?lnk=gst&q=disabling+of+sessions#ff32520adb83aeda

I can no longer post to this thread, so I start a new one here of the
same subject to post a continuation.

For the record, I have replaced Ikai's last line of his sample code

  Capability capability = state.getCapability();

with

    CapabilityStatus statusDatastore = state.getStatus();

and then tested the condition

  (statusDatastore == CapabilityStatus.ENABLED)

to see if the datastore is available.

Ikai's code and my amendment tests for "Capability.DATASTORE". I use
this template to test for Capability.DATASTORE_WRITE too. I shall see
in next month's scheduled datastore down-time whether my new code will
detect this down-time and react to it cleanly.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to