Package com.google.appengine.api.utils
Class SystemProperty
java.lang.Object
com.google.appengine.api.utils.SystemProperty
- Direct Known Subclasses:
SystemProperty.Environment
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
}
String version = SystemProperty.version.get();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The current executing environment. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemProperty
The application identifier for the current application.static final SystemProperty
The version identifier for the current application version.static final SystemProperty.Environment
The current executing environment.static final SystemProperty
Deprecated.static final SystemProperty
The current executing runtime version. -
Method Summary
-
Field Details
-
environment
The current executing environment. Has the key,"com.google.appengine.runtime.environment"
. Has the values"Production"
and"Development"
. -
version
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". -
applicationId
The application identifier for the current application. Has the key,"com.google.appengine.application.id"
. -
applicationVersion
The version identifier for the current application version. Result is of the form <major>.<minor> where <major> is the version name supplied at deploy time and <minor> is a timestamp value maintained by App Engine. Has the key"com.google.appengine.application.version"
. -
instanceReplicaId
Deprecated.
-
-
Method Details
-
key
The key for the system property. -
get
Gets the value of the system property. Equivalent toSystem.getProperty(key())
. -
set
Sets the value of the system property. Equivalent toSystem.setProperty(key(), value)
.
-
ModulesService.getCurrentInstanceId()