public class RemoteComputeHelper extends Object
options() method. Returned options have custom
ServiceOptions.retryParams(): RetryParams.retryMaxAttempts() is 10,
RetryParams.retryMinAttempts() is 6, RetryParams.maxRetryDelayMillis() is
30000, RetryParams.totalRetryPeriodMillis() is 120000 and
RetryParams.initialRetryDelayMillis() is 250.
ServiceOptions.connectTimeout() and ServiceOptions.readTimeout() are both set to
60000.| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteComputeHelper.ComputeHelperException |
| Modifier and Type | Method and Description |
|---|---|
static String |
baseResourceName()
Returns a base name for testing resources generated using a random UUID.
|
static RemoteComputeHelper |
create()
Creates a
RemoteComputeHelper object using default project id and authentication
credentials. |
static RemoteComputeHelper |
create(String projectId,
InputStream keyStream)
Creates a
RemoteComputeHelper object for the given project id and JSON key input
stream. |
ComputeOptions |
options()
Returns a
ComputeOptions object to be used for testing. |
public ComputeOptions options()
ComputeOptions object to be used for testing.public static String baseResourceName()
public static RemoteComputeHelper create(String projectId, InputStream keyStream)
RemoteComputeHelper object for the given project id and JSON key input
stream.projectId - id of the project to be used for running the testskeyStream - input stream for a JSON keyRemoteComputeHelper object for the provided optionsRemoteComputeHelper.ComputeHelperException - if keyStream is not a valid JSON key streampublic static RemoteComputeHelper create()
RemoteComputeHelper object using default project id and authentication
credentials.Copyright © 2016 Google. All rights reserved.