Class LocalCapabilitiesEnvironment
java.lang.Object
com.google.appengine.tools.development.LocalCapabilitiesEnvironment
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableSet<String> static final com.google.common.collect.ImmutableList<Capability> static final Stringprefix used to detect which properties are relevant to the Capability Service. -
Constructor Summary
ConstructorsConstructorDescriptionLocalCapabilitiesEnvironment(Properties properties) initialize a LocalCapabilitiesEnvironment with all the properties that start with the correct KEY_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgeCapabilityPropertyKey(String packageName, String capability) getStatusFromCapabilityName(String packageName, String capabilityName) getStatusFromMethodName(String capabilityName, String methodName) voidsetCapabilitiesStatus(String capabilityName, CapabilityStatus status) modify the capability status based on the capability property name property names that do not start with "capability.status" are ignored
-
Field Details
-
KEY_PREFIX
prefix used to detect which properties are relevant to the Capability Service. All property keys not starting with this prefix will be ignored in the initialization on the service.- See Also:
-
DATASTORE_WRITE_RPCS
-
DEFAULT_ENABLED_SERVICES
-
-
Constructor Details
-
LocalCapabilitiesEnvironment
initialize a LocalCapabilitiesEnvironment with all the properties that start with the correct KEY_PREFIX- Parameters:
properties- setting up some capability states
-
-
Method Details
-
geCapabilityPropertyKey
-
setCapabilitiesStatus
modify the capability status based on the capability property name property names that do not start with "capability.status" are ignored- Parameters:
capabilityName- property name with prefix as "capability.status.memcache"status- required status for the given capability
-
getStatusFromMethodName
- Parameters:
capabilityName- name fo the capability (for ex "datastore_v3")methodName- RPC method name (for example "Get")- Returns:
- the capability status for the given method
-
getStatusFromCapabilityName
- Parameters:
packageName- package Name name of the capability (for ex "datastore_v3")capabilityName- name of the capability (for example, "write" or "*")- Returns:
- the capability status for the given capability
-