public class RemoteComputeHelper extends Object
getOptions()
method. Returned options have custom ServiceOptions.getRetrySettings()
: RetrySettings.getMaxAttempts()
is 10
, RetrySettings.getMaxAttempts()
()} is 6
, RetrySettings.getMaxRetryDelay()
is
30000
, RetrySettings.getTotalTimeout()
is 120000
and RetrySettings.getInitialRetryDelay()
is 250
. HttpTransportOptions.getConnectTimeout()
and HttpTransportOptions.getReadTimeout()
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 |
getOptions()
Returns a
ComputeOptions object to be used for testing. |
public ComputeOptions getOptions()
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 © 2019 Google LLC. All rights reserved.