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 DatastoreEmulator
create(DatastoreOptions options)
Provides access to a datastore using the provided options.DatastoreEmulator
create(DatastoreOptions options, DatastoreEmulatorOptions localDevelopmentOptions)
static DatastoreEmulatorFactory
get()
-
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:DatastoreFactory
Provides access to a datastore using the provided options. Logs into the application using the credentials available via these options.- Overrides:
create
in classDatastoreFactory
- Throws:
IllegalArgumentException
- if the server or credentials weren't provided.
-
create
public DatastoreEmulator create(DatastoreOptions options, DatastoreEmulatorOptions localDevelopmentOptions)
-
-