public class DatastoreFactory extends Object
Datastore.| Modifier and Type | Class and Description |
|---|---|
static class |
BaseDatastoreFactory.RemoteRpc |
| Constructor and Description |
|---|
DatastoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl(DatastoreOptions options,
String overrideUrl)
Build a valid datastore URL.
|
Datastore |
create(DatastoreOptions options)
Provides access to a datastore using the provided options.
|
static DatastoreFactory |
get() |
static void |
logMethodCalls()
Starts logging datastore method calls to the console.
|
com.google.api.client.http.HttpRequestFactory |
makeClient(DatastoreOptions options)
Constructs a Google APIs HTTP client with the associated credentials.
|
protected BaseDatastoreFactory.RemoteRpc |
newRemoteRpc(DatastoreOptions options) |
protected BaseDatastoreFactory.RemoteRpc |
newRemoteRpc(DatastoreOptions options,
String urlOverride) |
public static final String VERSION
public static DatastoreFactory get()
public Datastore create(DatastoreOptions options) throws IllegalArgumentException
IllegalArgumentException - if the server or credentials weren't provided.protected String buildUrl(DatastoreOptions options, String overrideUrl)
protected BaseDatastoreFactory.RemoteRpc newRemoteRpc(DatastoreOptions options)
protected BaseDatastoreFactory.RemoteRpc newRemoteRpc(DatastoreOptions options, String urlOverride)
public com.google.api.client.http.HttpRequestFactory makeClient(DatastoreOptions options)
public static void logMethodCalls()
Copyright © 2015. All rights reserved.