简体   繁体   English

Google App Engine-列出版本实例并获取有关它们的信息

[英]Google App Engine - list version instances and get information about them

I'm using Java SDK for Google App engine and I'm searching for a way to get information about the instances started withing the current version of an app. 我正在将Java SDK用于Google App引擎,并且正在寻找一种方法来获取有关从实例的当前版本开始的实例信息。 Specifically, I need to get a list of the existing (started) instances and get their environment (Runtime) so I can list memory information about each of them. 具体来说,我需要获取现有(启动)实例的列表并获取其环境(运行时),以便可以列出有关每个实例的内存信息。

Is there a way to do this? 有没有办法做到这一点?

Assuming you don't want to scrape this information manually from the backend ui, I believe you're looking for ModulesService and friends. 假设您不想从后端ui手动抓取此信息,我相信您正在寻找ModulesService和朋友。

Edit: Thinking about it: I guess it would be easier to tap into an instance lifecycle (warumup request, shutdown hook ) and simply store the required information. 编辑:考虑一下:我想进入实例生命周期(warumup请求, shutdown hook )并仅存储所需信息会更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM