Class InstanceHelper
java.lang.Object
com.google.appengine.tools.development.InstanceHelper
Utility functions to access a server instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendStartRequest(Runnable runOnSuccess) Triggers an HTTP GET to /_ah/start in a background threadvoidshutdown()Shut down the server.
-
Method Details
-
sendStartRequest
Triggers an HTTP GET to /_ah/start in a background threadThis 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
Shut down the server.Will trigger any shutdown hooks installed by the
LifecycleManager- Throws:
Exception
-