com.google.appengine.tools.development
Interface ApiProxyLocal
-
public interface ApiProxyLocalA local service object, suitable for testing of service-client code as well as for local runtime use indev_appserver.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidappendProperties(java.util.Map<java.lang.String,java.lang.String> properties)Appends the given service properties toproperties.com.google.appengine.tools.development.ClockgetClock()com.google.appengine.tools.development.LocalRpcServicegetService(java.lang.String pkg)Get theLocalRpcServiceidentified by the given package.voidsetClock(com.google.appengine.tools.development.Clock clock)Sets the clock with which all local services are initialized.voidsetProperties(java.util.Map<java.lang.String,java.lang.String> properties)Resets the service properties toproperties.voidsetProperty(java.lang.String property, java.lang.String value)Sets an individual service property.voidstop()Stops all services started by this ApiProxy and releases all of its resources.
-
-
-
Method Detail
-
setProperty
void setProperty(java.lang.String property, java.lang.String value)Sets an individual service property.- Parameters:
property- name of the property to setvalue- new value of the property
-
setProperties
void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Resets the service properties toproperties.- Parameters:
properties- a maybenullset of properties for local services.
-
appendProperties
void appendProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Appends the given service properties toproperties.- Parameters:
properties- a set of properties to append for local services.
-
stop
void stop()
Stops all services started by this ApiProxy and releases all of its resources.
-
getService
com.google.appengine.tools.development.LocalRpcService getService(java.lang.String pkg)
Get theLocalRpcServiceidentified by the given package. This method should really only be used by tests.- Parameters:
pkg- The package identifying the service we want.- Returns:
- The requested service, or
nullif no service identified by the given package is available.
-
getClock
com.google.appengine.tools.development.Clock getClock()
- Returns:
- The clock with which all local services are initialized. Local services use the clock to determine the current time.
-
setClock
void setClock(com.google.appengine.tools.development.Clock clock)
Sets the clock with which all local services are initialized. Local services use the clock to determine the current time. Note that calling this method after a local service has already initialized will have no effect.- Parameters:
clock-
-
-