|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.tools.development.ApiProxyLocalImpl
public class ApiProxyLocalImpl
Implements ApiProxy.Delegate such that the requests are dispatched
to local service implementations. Used for both the
DevAppServer
and for unit testing services.
| Method Summary | |
|---|---|
com.google.appengine.tools.development.LocalRpcService |
getService(java.lang.String pkg)
Method needs to be synchronized to ensure that we don't end up starting multiple instances of the same service. |
void |
log(ApiProxy.Environment environment,
LogRecord record)
|
java.util.concurrent.Future<byte[]> |
makeAsyncCall(ApiProxy.Environment environment,
java.lang.String packageName,
java.lang.String methodName,
byte[] requestBytes,
ApiProxy.ApiConfig apiConfig)
|
byte[] |
makeSyncCall(Environment environment,
java.lang.String packageName,
java.lang.String methodName,
byte[] requestBytes)
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Resets the service properties to properties. |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets an individual service property. |
void |
stop()
Stops all services started by this ApiProxy and releases all of its resources. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void log(ApiProxy.Environment environment,
LogRecord record)
public byte[] makeSyncCall(Environment environment,
java.lang.String packageName,
java.lang.String methodName,
byte[] requestBytes)
public java.util.concurrent.Future<byte[]> makeAsyncCall(ApiProxy.Environment environment,
java.lang.String packageName,
java.lang.String methodName,
byte[] requestBytes,
ApiProxy.ApiConfig apiConfig)
public void setProperty(java.lang.String property,
java.lang.String value)
ApiProxyLocal
setProperty in interface ApiProxyLocalproperty - name of the property to setvalue - new value of the propertypublic void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties.
setProperties in interface ApiProxyLocalproperties - a maybe null set of properties for
local services.public void stop()
stop when it is attempting to
GC a webapp (otherwise background threads won't be stopped, etc...)
stop in interface ApiProxyLocalpublic final com.google.appengine.tools.development.LocalRpcService getService(java.lang.String pkg)
getService in interface ApiProxyLocalpkg - The package identifying the service we want.
null if no service
identified by the given package is available.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||