Package com.google.appengine.api.datastore.DatastoreAttributes

Examples of com.google.appengine.api.datastore.DatastoreAttributes.DatastoreType


  private boolean isHrDatastore() {
    synchronized (hrDatastoreKnown) {
      if (!hrDatastoreKnown) {
        ApiProxy.setEnvironmentForCurrentThread(new ToolEnvironment(remoteAppId, "none"));
        DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
        DatastoreType type = datastore.getDatastoreAttributes().getDatastoreType();
        hrDatastore = type == DatastoreType.HIGH_REPLICATION;
        hrDatastoreKnown = true;
      }
      return hrDatastore;
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.DatastoreAttributes.DatastoreType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.