Interface BackendService
- 
 Deprecated.
 @Deprecated public interface BackendServiceBackendServiceallows you to retrieve information about backend servers. Backend servers are long running addressable servers that can be used for applications that need to keep persistent state in ram between requests.This API is deprecated and has been replaced by ModulesService. Please update your code as soon as possible. See the modules documentation for more information: https://developers.google.com/appengine/docs/java/modules/convertingThis API allows you to retrieve information about the backend handling the current request. It also allows you to to get the address of a specific backend instance in such a way that a local server is used during development and a production server is used in production. 
- 
- 
Field SummaryFields Modifier and Type Field and Description static java.lang.StringBACKEND_ID_ENV_ATTRIBUTEDeprecated.Environment attribute key where the backend name is stored.static java.lang.StringDEVAPPSERVER_PORTMAPPING_KEYDeprecated.static java.lang.StringINSTANCE_ID_ENV_ATTRIBUTEDeprecated.Environment attribute key where the instance id is stored.static java.lang.StringREQUEST_HEADER_BACKEND_REDIRECTDeprecated.static java.lang.StringREQUEST_HEADER_INSTANCE_REDIRECTDeprecated.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description java.lang.StringgetBackendAddress(java.lang.String backend)Deprecated.Get the address of a specific backend in such a way that a local server is used during development and a production server is used in production.java.lang.StringgetBackendAddress(java.lang.String backend, int instance)Deprecated.Get the address of a specific backend instance in such a way that a local instance is used during development and a production server instance is used in production.java.lang.StringgetCurrentBackend()Deprecated.Get the name of the backend handling the current request.intgetCurrentInstance()Deprecated.Get the instance handling the current request.
 
- 
- 
- 
Field Detail- 
REQUEST_HEADER_BACKEND_REDIRECTstatic final java.lang.String REQUEST_HEADER_BACKEND_REDIRECT Deprecated.- See Also:
- Constant Field Values
 
 - 
REQUEST_HEADER_INSTANCE_REDIRECTstatic final java.lang.String REQUEST_HEADER_INSTANCE_REDIRECT Deprecated.- See Also:
- Constant Field Values
 
 - 
INSTANCE_ID_ENV_ATTRIBUTEstatic final java.lang.String INSTANCE_ID_ENV_ATTRIBUTE Deprecated.Environment attribute key where the instance id is stored.- See Also:
- getCurrentInstance(), Constant Field Values
 
 - 
BACKEND_ID_ENV_ATTRIBUTEstatic final java.lang.String BACKEND_ID_ENV_ATTRIBUTE Deprecated.Environment attribute key where the backend name is stored.- See Also:
- getCurrentBackend(), Constant Field Values
 
 - 
DEVAPPSERVER_PORTMAPPING_KEYstatic final java.lang.String DEVAPPSERVER_PORTMAPPING_KEY Deprecated.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getCurrentBackendjava.lang.String getCurrentBackend() Deprecated.Get the name of the backend handling the current request.- Returns:
- The name of the backend or null if the request is not handled by a backend.
 
 - 
getCurrentInstanceint getCurrentInstance() Deprecated.Get the instance handling the current request.- Returns:
- The instance id or -1 if the request is not handled by a backend.
 
 - 
getBackendAddressjava.lang.String getBackendAddress(java.lang.String backend) Deprecated.Get the address of a specific backend in such a way that a local server is used during development and a production server is used in production.- Parameters:
- backend- The name of the backend
- Returns:
- The address of the backend
 
 - 
getBackendAddressjava.lang.String getBackendAddress(java.lang.String backend, int instance)Deprecated.Get the address of a specific backend instance in such a way that a local instance is used during development and a production server instance is used in production.- Parameters:
- backend- The name of the backend
- instance- The instance id
- Returns:
- The address of the backend instance
 
 
- 
 
-