Class LocalCapabilitiesService
java.lang.Object
com.google.appengine.tools.development.AbstractLocalRpcService
com.google.appengine.api.capabilities.dev.LocalCapabilitiesService
- All Implemented Interfaces:
LocalRpcService
@AutoService(LocalRpcService.class)
public class LocalCapabilitiesService
extends AbstractLocalRpcService
Java stub implementation of the capabilities api backend.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.appengine.tools.development.LocalRpcService
LocalRpcService.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgeCapabilityPropertyKey(String packageName, String capability) Returns the package for the service, for example, "datastore_v3".voidinit(LocalServiceContext context, Map<String, String> properties) Initializes the service with a set of configuration properties.com.google.appengine.api.capabilities.CapabilityServicePb.IsEnabledResponseisEnabled(LocalRpcService.Status status, com.google.appengine.api.capabilities.CapabilityServicePb.IsEnabledRequest request) Implementation of RPC IsEnabled.voidsetCapabilitiesStatusJavaStub(String service, com.google.appengine.api.capabilities.CapabilityStatus status) voidstart()Puts a new service into "serving" mode.voidstop()Stops the service, releasing all of its resources.Methods inherited from class com.google.appengine.tools.development.AbstractLocalRpcService
getDefaultDeadline, getMaxApiRequestSize, getMaximumDeadline
-
Field Details
-
PACKAGE
The package name for this service.- See Also:
-
-
Constructor Details
-
LocalCapabilitiesService
public LocalCapabilitiesService()
-
-
Method Details
-
getPackage
Description copied from interface:LocalRpcServiceReturns the package for the service, for example, "datastore_v3".- Returns:
- a not
nullpackage name.
-
init
Description copied from interface:LocalRpcServiceInitializes the service with a set of configuration properties. Must be called before a service isstarted.- Specified by:
initin interfaceLocalRpcService- Overrides:
initin classAbstractLocalRpcService- Parameters:
context- A context object for the applicationproperties- A read-onlyMapof properties.- Throws:
IllegalArgumentException- If a property key is not known
-
setCapabilitiesStatusJavaStub
public void setCapabilitiesStatusJavaStub(String service, com.google.appengine.api.capabilities.CapabilityStatus status) -
start
public void start()Description copied from interface:LocalRpcServicePuts a new service into "serving" mode. Aside from setting properties, the service is not functional until after having been started.- Specified by:
startin interfaceLocalRpcService- Overrides:
startin classAbstractLocalRpcService
-
stop
public void stop()Description copied from interface:LocalRpcServiceStops the service, releasing all of its resources.- Specified by:
stopin interfaceLocalRpcService- Overrides:
stopin classAbstractLocalRpcService
-
isEnabled
public com.google.appengine.api.capabilities.CapabilityServicePb.IsEnabledResponse isEnabled(LocalRpcService.Status status, com.google.appengine.api.capabilities.CapabilityServicePb.IsEnabledRequest request) Implementation of RPC IsEnabled. Everything is enabled in the local dev.- Parameters:
status- RPC statusrequest-CapabilityServicePb.IsEnabledRequest- Returns:
CapabilityServicePb.IsEnabledResponse
-
getLocalCapabilitiesEnvironment
- Returns:
- the current LocalCapabilitiesEnvironment
-
geCapabilityPropertyKey
-