google-app-engine

How do I make a temporary backup of the local datastore in the AppEngine SDK for MacOSX

送分小仙女□ 提交于 2020-01-15 12:33:36
问题 How do I make a temporary backup of the local datastore in the AppEngine SDK for MacOSX And where are the files located? 回答1: Search for something called "local_db.bin" If you're using a plugin for Eclipse, you'll find this file in WEB-INF/appengine-generated 回答2: local_db.bin is the database file and it is located in your project directory, just make a copy of it. 来源: https://stackoverflow.com/questions/1734826/how-do-i-make-a-temporary-backup-of-the-local-datastore-in-the-appengine-sdk-for

getDefaultGcsBucketName Response contained no data

两盒软妹~` 提交于 2020-01-15 12:15:21
问题 I try to call AppIdentityService#getDefaultGcsBucketName but it throws an exception: Response contained no data. According to the docs, the default bucket should be ready to use. Code: //Field private AppIdentityService service; //in ctor this.service = AppIdentityServiceFactory.getAppIdentityService(); //call inside a method final String baseUrl = GCS_URL + "/" + service.getDefaultGcsBucketName() + "/" + fileName; 回答1: If you created your app prior to the 1.9.0 SDK release, you have to

Packaging multiple services into a war file for Java 8 in GAE

对着背影说爱祢 提交于 2020-01-15 12:07:51
问题 In Google App Engine (GAE), you can package multiple services into a single exploded WAR file (a.k.a EAR file) but only if your app is running under Java 7. This does not work for Java 8: An App Engine application that uses services is organized as an unpacked Java Enterprise Archive (EAR) directory structure. The top-level EAR directory contains a single META-INF subdirectory, and a separate directory for each service in the app. Note that EAR is supported for the Java 7 runtime only, not

Packaging multiple services into a war file for Java 8 in GAE

冷暖自知 提交于 2020-01-15 12:07:04
问题 In Google App Engine (GAE), you can package multiple services into a single exploded WAR file (a.k.a EAR file) but only if your app is running under Java 7. This does not work for Java 8: An App Engine application that uses services is organized as an unpacked Java Enterprise Archive (EAR) directory structure. The top-level EAR directory contains a single META-INF subdirectory, and a separate directory for each service in the app. Note that EAR is supported for the Java 7 runtime only, not

Can javaCV be used with GAE(Google App Engine)?

≡放荡痞女 提交于 2020-01-15 11:21:56
问题 Can i use javaCV with GAE?? Now, i try to import javaCV jar to GAE,GWT project in Eclipse But it wasn't work... First, I makes GAE project in Eclipse that was installed GAE plug-in and add javaCV jar file to /war/WEB-INF/lib and config jar Build path so it wasn't confirm error in source But when i run WebApplication(local) some errors occur.. like this [ERROR] [jebal] - Line 72: No source code is available for type com.googlecode.javacv.cpp.opencv_core.IplImage; did you forget to inherit a

JPA join criteria with datastore in google app engine

大城市里の小女人 提交于 2020-01-15 11:05:31
问题 Suppose I have 2 JPA classes which model 2 entities in datastore (Google app engine) like these: @Entity public class Clazz { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key classKey; @Basic private String classId; @Basic private String className; @ManyToOne private Subject subject; } @Entity public class Subject { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key subjectKey; @Basic private String subjectId; @Basic private String subjectName; @OneToMany

JPA join criteria with datastore in google app engine

笑着哭i 提交于 2020-01-15 11:04:12
问题 Suppose I have 2 JPA classes which model 2 entities in datastore (Google app engine) like these: @Entity public class Clazz { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key classKey; @Basic private String classId; @Basic private String className; @ManyToOne private Subject subject; } @Entity public class Subject { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key subjectKey; @Basic private String subjectId; @Basic private String subjectName; @OneToMany

GAE PHP application: Unable to find the wrapper “gs”

半腔热情 提交于 2020-01-15 10:24:07
问题 I am writing some very simple code in the standard php73 Google App engine environment, following the documentation here: https://cloud.google.com/appengine/docs/standard/php/googlestorage/ and https://cloud.google.com/appengine/docs/standard/php/googlestorage/setup php.ini (not required according to docs for this scenario, but just in case) google_app_engine.allow_include_gs_buckets = "#default#" index.php: file_put_contents("gs://#default#/hello.txt", "some text"); and getting the following

More efficient method of aggregating items into super list Java

放肆的年华 提交于 2020-01-15 10:19:06
问题 I am looking for a more efficient way of accomplishing the result of the following code pre java 8 (this is on an app hosted on Google App Engine which does not yet support Java 8) List<Order> orders = getOrders(); List<LineItem> lineItems = new ArrayList<>(); for (final Order order : orders) { for (final LineItem lineItem : order.getItems()) { lineItems.add(lineItem); } } Is there a more efficient means of accomplishing this without needing to use Java 8 functionality? Possibly using Guava

manual serialization / deserialization of AppEngine Datastore objects

泄露秘密 提交于 2020-01-15 10:17:14
问题 Is it possible to manually define the logic of the serialization used for AppEngine Datastore? I am assuming Google is using reflection to do this in a generic way. This works but proves to be quite slow. I'd be willing to write (and maintain) quite some code to speed up the serialization / deserialization of datastore objects (I have large objects and this consumes quite some percentage of the time). 回答1: The datastore uses Protocol-Buffers internally, and there is no way round, as its the