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.getRetryParams():
RetryParams.getRetryMaxAttempts() is 10,
RetryParams.getRetryMinAttempts() is 6,
RetryParams.getMaxRetryDelayMillis() is 30000,
RetryParams.getTotalRetryPeriodMillis() is 120000 and
RetryParams.getInitialRetryDelayMillis() is 250.
HttpServiceOptions.getConnectTimeout() and HttpServiceOptions.getReadTimeout() are
both set to 60000.| 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. |
DatastoreOptions |
options()
Deprecated.
|
@Deprecated public DatastoreOptions options()
DatastoreOptions object to be used for testing. The options are associated
to a randomly generated namespace.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 © 2017 Google. All rights reserved.