@InternalApi public class RemoteDatastoreHelper extends Object
getOptions() method. Returned options use a randomly generated namespace
(DatastoreOptions.getNamespace()) that can be used to run the tests. Once the tests are
run, all entities in the namespace can be deleted using deleteNamespace(). Returned
options also have custom ServiceOptions.getRetrySettings():
RetrySettings.getMaxAttempts() is 10,
RetrySettings.getMaxRetryDelay() is 30000,
RetrySettings.getTotalTimeout() is 120000 and
RetrySettings.getInitialRetryDelay() is 250.
HttpTransportOptions.getConnectTimeout() and
HttpTransportOptions.getReadTimeout() are both
both set to 60000.
Internal testing use only| Modifier and Type | Method and Description |
|---|---|
static RemoteDatastoreHelper |
create()
Creates a
RemoteStorageHelper object. |
void |
deleteNamespace()
Deletes all entities in the namespace associated with this
RemoteDatastoreHelper. |
DatastoreOptions |
getOptions()
Returns a
DatastoreOptions object to be used for testing. |
public DatastoreOptions getOptions()
DatastoreOptions object to be used for testing. The options are associated
to a randomly generated namespace.public void deleteNamespace()
RemoteDatastoreHelper.public static RemoteDatastoreHelper create()
RemoteStorageHelper object.Copyright © 2018 Google. All rights reserved.