AbstractContainerService

com.google.appengine.tools.development

Class AbstractContainerService

  • java.lang.Object
    • com.google.appengine.tools.development.AbstractContainerService
  • All Implemented Interfaces:
    ContainerService


    public abstract class AbstractContainerService
    extends java.lang.Object
    implements ContainerService
    Common implementation for the ContainerService interface.

    There should be no reference to any third-party servlet container from here.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.google.appengine.tools.development.LocalServerEnvironment configure(java.lang.String devAppServerVersion, java.lang.String address, int port, com.google.appengine.tools.development.ApplicationConfigurationManager.ModuleConfigurationHandle moduleConfigurationHandle, java.io.File externalResourceDir, java.util.Map<java.lang.String,java.lang.Object> containerConfigProperties, int instance, DevAppServer devAppServer)
      Sets up the necessary configuration parameters.
      void createConnection()
      Create's this containers network connections.
      java.lang.String getAddress()
      Returns the listener network address, however it's decided during the servlet container deployment.
      AppEngineWebXml getAppEngineWebXmlConfig()
      Return the AppEngineWebXml configuration of this container
      java.lang.String getHostName()
      Returns the host name of the module instance, however it's decided during the the servlet container deployment.
      int getPort()
      Returns the listener port number, however it's decided during the servlet container deployment.
      java.util.Map<java.lang.String,java.lang.String> getServiceProperties()
      Get a set of properties to be passed to each service, based on the AppEngineWebXml configuration.
      static void installLocalInitializationEnvironment(AppEngineWebXml appEngineWebXml, int instance, int port, int defaultModuleMainPort, java.lang.String backendName, int backendInstance, java.util.Map<java.lang.String,java.lang.String> portMapping)
      Sets up an com.google.apphosting.api.ApiProxy.Environment for container initialization.
      void setApiProxyDelegate(<any> apiProxyDelegate)
      Sets the com.google.apphosting.api.ApiProxy.Delegate.
      void shutdown()
      Shuts down the servlet container.
      void startup()
      Starts up the servlet container.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PORT_MAPPING_PROVIDER_PROP

        public static final java.lang.String PORT_MAPPING_PROVIDER_PROP
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractContainerService

        public AbstractContainerService()
    • Method Detail

      • configure

        public final com.google.appengine.tools.development.LocalServerEnvironment configure(java.lang.String devAppServerVersion,
                                                                                             java.lang.String address,
                                                                                             int port,
                                                                                             com.google.appengine.tools.development.ApplicationConfigurationManager.ModuleConfigurationHandle moduleConfigurationHandle,
                                                                                             java.io.File externalResourceDir,