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

public abstract class AbstractLocalRpcService extends Object implements LocalRpcService
An abstract implementation of LocalRpcService which runs no setup logic and provides no deadline hints.
  • Constructor Details

    • AbstractLocalRpcService

      public AbstractLocalRpcService()
  • Method Details

    • init

      public void init(LocalServiceContext context, Map<String,String> properties)
      Description copied from interface: LocalRpcService
      Initializes the service with a set of configuration properties. Must be called before a service is started.
      Specified by:
      init in interface LocalRpcService
      Parameters:
      context - A context object for the application
      properties - A read-only Map of properties.
    • start

      public void start()
      Description copied from interface: LocalRpcService
      Puts a new service into "serving" mode. Aside from setting properties, the service is not functional until after having been started.
      Specified by:
      start in interface LocalRpcService
    • stop

      public void stop()
      Description copied from interface: LocalRpcService
      Stops the service, releasing all of its resources.
      Specified by:
      stop in interface LocalRpcService
    • getDefaultDeadline

      public Double getDefaultDeadline(boolean isOfflineRequest)
      Description copied from interface: LocalRpcService
      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. This method may return null if the service has no opinion about the deadline, in which case a global deadline will be used instead.
      Specified by:
      getDefaultDeadline in interface LocalRpcService
    • getMaximumDeadline

      public Double getMaximumDeadline(boolean isOfflineRequest)
      Description copied from interface: LocalRpcService
      Return 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 return null if the service has no opinion about the maximum deadline, in which case a global maximum deadline will be used instead.
      Specified by:
      getMaximumDeadline in interface LocalRpcService
    • getMaxApiRequestSize

      public Integer getMaxApiRequestSize()
      Description copied from interface: LocalRpcService
      Returns the maximum size of an encoded API request in bytes, or null for the default size.
      Specified by:
      getMaxApiRequestSize in interface LocalRpcService