Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / tools / development / BackendContainer.java
blobc5e4b7175f8c557452e2dd1ff4df19c7d81176e2
1 // Copyright 2011 Google Inc. All Rights Reserved.
3 package com.google.appengine.tools.development;
5 import com.google.apphosting.utils.config.BackendsXml;
7 import java.io.File;
8 import java.util.Map;
10 /**
11 * Interface to backend instances
13 public interface BackendContainer {
15 public void setServiceProperties(Map<String, String> properties);
17 /**
18 * Shutdown all backend servers
20 * @throws Exception
22 public void shutdownAll() throws Exception;
24 /**
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.
30 * @throws Exception
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);