1 // Copyright 2011 Google Inc. All Rights Reserved.
3 package com
.google
.appengine
.tools
.development
;
5 import com
.google
.apphosting
.utils
.config
.BackendsXml
;
11 * Interface to backend instances
13 public interface BackendContainer
{
15 public void setServiceProperties(Map
<String
, String
> properties
);
18 * Shutdown all backend servers
22 public void shutdownAll() throws Exception
;
25 * Start all backend servers, the number of servers to start is specified
26 * in the {@code appConfig} parameter
28 * @param backendsXml Parsed backends.xml file with servers configuration
29 * @param local The api proxy that each container should use.
32 public void startupAll(BackendsXml backendsXml
, ApiProxyLocal local
) throws Exception
;
34 void init(File appDir
, File externalResourceDir
, File webXmlLocation
,
35 File appEngineWebXmlLocation
, String address
, Map
<String
, Object
> containerConfigProperties
,
36 DevAppServer devAppServer
);