public class SystemPropertyGlobal system properties which are set by App Engine.
Example code:
 if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) {
   // do something that's production-only
 }
 String version = SystemProperty.version.get();
 Static Fields
applicationId
public static final SystemProperty applicationIdThe application identifier for the current application.  Has the
 key, "com.google.appengine.application.id".
| Field Value | |
|---|---|
| Type | Description | 
| SystemProperty | |
applicationVersion
public static final SystemProperty applicationVersionThe version identifier for the current application version. Result is of the form
| Field Value | |
|---|---|
| Type | Description | 
| SystemProperty | |
environment
public static final SystemProperty.Environment environmentThe current executing environment. Has the key,
 "com.google.appengine.runtime.environment".
 Has the values "Production" and "Development".
| Field Value | |
|---|---|
| Type | Description | 
| SystemProperty.Environment | |
instanceReplicaId (deprecated)
public static final SystemProperty instanceReplicaId| Field Value | |
|---|---|
| Type | Description | 
| SystemProperty | |
version
public static final SystemProperty versionThe 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".
| Field Value | |
|---|---|
| Type | Description | 
| SystemProperty | |
Methods
get()
public @Nullable String get()Gets the value of the system property.
 Equivalent to System.getProperty(key()).
| Returns | |
|---|---|
| Type | Description | 
| Nullable String | |
key()
public String key()The key for the system property.
| Returns | |
|---|---|
| Type | Description | 
| String | |
set(String value)
public void set(String value)Sets the value of the system property.
 Equivalent to System.setProperty(key(), value).
| Parameter | |
|---|---|
| Name | Description | 
| value | String |