Class AbstractLocalRpcService
java.lang.Object
com.google.appengine.tools.development.AbstractLocalRpcService
- All Implemented Interfaces:
LocalRpcService
- Direct Known Subclasses:
LocalAppIdentityService,LocalBlobstoreService,LocalCapabilitiesService,LocalImagesService,LocalLogService,LocalMailService,LocalMemcacheService,LocalModulesService,LocalSearchService,LocalTaskQueue,LocalURLFetchService,LocalUserService
An abstract implementation of
LocalRpcService which runs no
setup logic and provides no deadline hints.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.appengine.tools.development.LocalRpcService
LocalRpcService.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultDeadline(boolean isOfflineRequest) Return the number of seconds that should be used as a deadline for each API call if no other deadline is requested by the user.Returns the maximum size of an encoded API request in bytes, ornullfor the default size.getMaximumDeadline(boolean isOfflineRequest) Return the maximum number of seconds that is allowed as a deadline for each API call.voidinit(LocalServiceContext context, Map<String, String> properties) Initializes the service with a set of configuration properties.voidstart()Puts a new service into "serving" mode.voidstop()Stops the service, releasing all of its resources.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.appengine.tools.development.LocalRpcService
getPackage
-
Constructor Details
-
AbstractLocalRpcService
public AbstractLocalRpcService()
-
-
Method Details
-
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- Parameters:
context- A context object for the applicationproperties- A read-onlyMapof properties.
-
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
-
stop
public void stop()Description copied from interface:LocalRpcServiceStops the service, releasing all of its resources.- Specified by:
stopin interfaceLocalRpcService
-
getDefaultDeadline
Description copied from interface:LocalRpcServiceReturn the number of seconds that should be used as a deadline for each API call if no other deadline is requested by the user. This method may returnnullif the service has no opinion about the deadline, in which case a global deadline will be used instead.- Specified by:
getDefaultDeadlinein interfaceLocalRpcService
-
getMaximumDeadline
Description copied from interface:LocalRpcServiceReturn the maximum number of seconds that is allowed as a deadline for each API call. The user cannot request a deadline higher than this value. This method may returnnullif the service has no opinion about the maximum deadline, in which case a global maximum deadline will be used instead.- Specified by:
getMaximumDeadlinein interfaceLocalRpcService
-
getMaxApiRequestSize
Description copied from interface:LocalRpcServiceReturns the maximum size of an encoded API request in bytes, ornullfor the default size.- Specified by:
getMaxApiRequestSizein interfaceLocalRpcService
-