Stay organized with collections
Save and categorize content based on your preferences.
publicclassSystemProperty
Global system properties which are set by App Engine.
Example code:
if(SystemProperty.environment.value()==SystemProperty.Environment.Value.Production){// do something that's production-only}Stringversion=SystemProperty.version.get();
The current executing runtime version. Has the key,
"com.google.appengine.runtime.version".
A Version value is composed of period-separated integers, for example,
"1.2.8".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eSystemProperty\u003c/code\u003e is a class for accessing global system properties set by App Engine.\u003c/p\u003e\n"],["\u003cp\u003eYou can check the current environment (Production or Development) using \u003ccode\u003eSystemProperty.environment\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSystemProperty\u003c/code\u003e includes static fields such as \u003ccode\u003eapplicationId\u003c/code\u003e, \u003ccode\u003eapplicationVersion\u003c/code\u003e, and \u003ccode\u003eversion\u003c/code\u003e to retrieve related information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget()\u003c/code\u003e method retrieves the value of a specific system property, while \u003ccode\u003ekey()\u003c/code\u003e returns its corresponding key.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003eset()\u003c/code\u003e is used to set the value of a system property, similar to \u003ccode\u003eSystem.setProperty(key(), value)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class SystemProperty (2.0.0)\n\n public class SystemProperty\n\nGlobal system properties which are set by App Engine.\n\n\nExample code: \n\n\n if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) {\n // do something that's production-only\n }\n String version = SystemProperty.version.get();\n \nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e SystemProperty \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### applicationId\n\n public static final SystemProperty applicationId\n\nThe application identifier for the current application. Has the\nkey, `\"com.google.appengine.application.id\"`.\n\n### applicationVersion\n\n public static final SystemProperty applicationVersion\n\nThe version identifier for the current application version. Result is of\nthe form\n\n\n### environment\n\n public static final SystemProperty.Environment environment\n\nThe current executing environment. Has the key,\n`\"com.google.appengine.runtime.environment\"`.\nHas the values `\"Production\"` and `\"Development\"`.\n\n### instanceReplicaId (deprecated)\n\n public static final SystemProperty instanceReplicaId\n\n**Deprecated.** *Use [com.google.appengine.api.modules.ModulesService#getCurrentInstanceId()](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.modules.ModulesService#com_google_appengine_api_modules_ModulesService_getCurrentInstanceId__)*\n\n### version\n\n public static final SystemProperty version\n\nThe current executing runtime version. Has the key,\n`\"com.google.appengine.runtime.version\"`.\nA Version value is composed of period-separated integers, for example,\n\"1.2.8\".\n\nMethods\n-------\n\n### get()\n\n public @Nullable String get()\n\nGets the value of the system property.\nEquivalent to `System.getProperty(key())`.\n\n### key()\n\n public String key()\n\nThe key for the system property.\n\n### set(String value)\n\n public void set(String value)\n\nSets the value of the system property.\nEquivalent to `System.setProperty(key(), value)`."]]