Class InstanceHelper

java.lang.Object
com.google.appengine.tools.development.InstanceHelper

public class InstanceHelper extends Object
Utility functions to access a server instance.
  • Method Details

    • sendStartRequest

      public void sendStartRequest(Runnable runOnSuccess)
      Triggers an HTTP GET to /_ah/start in a background thread

      This method will keep on trying until it receives a non-error response code from the server.

      Parameters:
      runOnSuccess - Runnable.run() invoked when the startup request succeeds.
    • shutdown

      public void shutdown() throws Exception
      Shut down the server.

      Will trigger any shutdown hooks installed by the LifecycleManager

      Throws:
      Exception