Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / tools / development / BackendContainer.java
blobbc698ccd6b2e6695aedc67d74c2cc801ff8d2445
1 // Copyright 2011 Google Inc. All Rights Reserved.
3 package com.google.appengine.tools.development;
5 import com.google.appengine.tools.development.ApplicationConfigurationManager.ServerConfigurationHandle;
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(ApiProxyLocal local) throws Exception;
34 public void init(String address, final ServerConfigurationHandle serverConfigurationHandle,
35 File externalResourceDirectory, Map<String, Object> containerConfigProperties,
36 DevAppServer devAppServer);