Package com.google.datastore.v1.client
Class DatastoreEmulatorFactory
- java.lang.Object
-
- com.google.datastore.v1.client.DatastoreFactory
-
- com.google.datastore.v1.client.DatastoreEmulatorFactory
-
public class DatastoreEmulatorFactory extends DatastoreFactory
Factory forDatastoreEmulator.
-
-
Field Summary
-
Fields inherited from class com.google.datastore.v1.client.DatastoreFactory
DEFAULT_HOST, VERSION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastoreEmulatorcreate(DatastoreOptions options)Provides access to a datastore using the provided options.DatastoreEmulatorcreate(DatastoreOptions options, DatastoreEmulatorOptions localDevelopmentOptions)static DatastoreEmulatorFactoryget()-
Methods inherited from class com.google.datastore.v1.client.DatastoreFactory
logMethodCalls, makeClient, newRemoteRpc
-
-
-
-
Method Detail
-
get
public static DatastoreEmulatorFactory get()
-
create
public DatastoreEmulator create(DatastoreOptions options) throws IllegalArgumentException
Description copied from class:DatastoreFactoryProvides access to a datastore using the provided options. Logs into the application using the credentials available via these options.- Overrides:
createin classDatastoreFactory- Throws:
IllegalArgumentException- if the server or credentials weren't provided.
-
create
public DatastoreEmulator create(DatastoreOptions options, DatastoreEmulatorOptions localDevelopmentOptions)
-
-