java - 从 Google 托管虚拟机(自定义/Java)连接到 Google Cloud 数据存储?

标签 java google-app-engine google-cloud-datastore google-managed-vm managed-vm

是否可以从适用于 Java 的 Google App Engine 自定义托管虚拟机连接到 Google Cloud Datastore?我相信标准托管虚拟机可以做到这一点,但是自定义虚拟机也可以吗?

最佳答案

是的。

标准托管虚拟机

来自Using the Java Managed VM Environment :

The Java runtime is available as a Managed VM standard runtime. A standard runtime supports a subset of the App Engine service APIs. Currently, Managed VMs support these services:

  • Datastore
  • Logging
  • Memcache
  • Search
  • Task Queue
  • URL Fetch
  • Users

具有自定义运行时的托管虚拟机

来自Building Custom Runtimes: Accessing Cloud Platform services :

Runtimes in Managed VMs can access any Google or third party services via standard APIs.

其他一切

您还可以使用 Datastore REST API 从任何地方连接到 Google Cloud Datastore .

关于java - 从 Google 托管虚拟机(自定义/Java)连接到 Google Cloud 数据存储?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33803175/

相关文章:

java - 编译 Junit 类时出现问题

java - 当我的对象具有以 new (newStatus) 开头的属性名称时,查询出现问题

google-app-engine - 如何从 Hudson(或任何其他 CI)在 Google App Engine 上自动部署?

python - 从 Google App Engine 数据存储区获取随机记录?

google-app-engine - App Engine ndb - 如何使用 id 按键加载实体?

python - 如何模拟_auto_now?

java - Jtable 与 Excel 一样具有条件格式

java - Android 应用程序中的 ClassCastException

java - 如何知道ubuntu中文件夹的绝对路径

java - 使用 JDO 从数据存储区存储和检索数据