Interface LocalServerController
- All Known Implementing Classes:
BackendServers,BackendServersBase,BackendServersEE8
public interface LocalServerController
Interface for controlling and getting information about backends in the
dev-appserver.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classClass holding information about a single backend and its replicas.static classClass holding instance information in a way that is useful for display in the backend viewer jsps. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetBackendState(String requestHostName) Returns a map containing all information about current backend state.voidstartBackend(String backend) Start all instances in STOPPED state of a single backend.voidstopBackend(String backend) Stop all instances in RUNNING state of a single backend, reset the internal state of each instance, and set state to STOPPED so that any subsequent requests receive a 500 error code response.
-
Field Details
-
BACKEND_CONTROLLER_ATTRIBUTE_KEY
- See Also:
-
-
Method Details
-
getBackendState
Returns a map containing all information about current backend state.- Parameters:
requestHostName- The hostname of the request, if null is specified the listen address will be used.- Returns:
- Backend name -> backend information mapping for all configured backends.
-
stopBackend
Stop all instances in RUNNING state of a single backend, reset the internal state of each instance, and set state to STOPPED so that any subsequent requests receive a 500 error code response.- Parameters:
backend- The backend to stop.- Throws:
IllegalStateException- if the specified backend does not exist.Exception- if an error occurred that prevented the backend from resetting cleanly.
-
startBackend
Start all instances in STOPPED state of a single backend.- Parameters:
backend- The backend to start.- Throws:
IllegalStateException- is the specified backend does not exist.
-