Package com.google.datastore.v1.client
Class DatastoreFactory
java.lang.Object
com.google.datastore.v1.client.DatastoreFactory
- Direct Known Subclasses:
DatastoreEmulatorFactory,MockDatastoreFactory
Client factory for
Datastore.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(DatastoreOptions options) Provides access to a datastore using the provided options.static DatastoreFactoryget()static voidStarts logging datastore method calls to the console.com.google.api.client.http.HttpRequestFactorymakeClient(DatastoreOptions options) Constructs a Google APIs HTTP client with the associated credentials.protected com.google.datastore.v1.client.RemoteRpcnewRemoteRpc(DatastoreOptions options)
-
Field Details
-
VERSION
API version.- See Also:
-
DEFAULT_HOST
- See Also:
-
-
Constructor Details
-
DatastoreFactory
public DatastoreFactory()
-
-
Method Details
-
get
-
create
Provides access to a datastore using the provided options. Logs into the application using the credentials available via these options.- Throws:
IllegalArgumentException- if the server or credentials weren't provided.
-
makeClient
Constructs a Google APIs HTTP client with the associated credentials. -
logMethodCalls
public static void logMethodCalls()Starts logging datastore method calls to the console. (Useful within tests.) -
newRemoteRpc
-