public class RemoteLoggingHelper extends Object
options() method. Returned options have custom ServiceOptions.retryParams():
RetryParams.maxRetryDelayMillis() is 30000,
RetryParams.totalRetryPeriodMillis() is 120000 and
RetryParams.initialRetryDelayMillis() is 250.
GrpcServiceOptions.initialTimeout() is set to 60000, GrpcServiceOptions.maxTimeout() is
set to 240000 and GrpcServiceOptions.timeoutMultiplier() is set to 1.5.| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteLoggingHelper.LoggingHelperException |
| Modifier and Type | Method and Description |
|---|---|
static RemoteLoggingHelper |
create()
Creates a
RemoteLoggingHelper object using default project id and authentication
credentials. |
static RemoteLoggingHelper |
create(String projectId,
InputStream keyStream)
Creates a
RemoteLoggingHelper object for the given project id and JSON key input
stream. |
static String |
formatForTest(String name)
Formats a resource name for testing purpose.
|
LoggingOptions |
options()
Returns a
LoggingOptions object to be used for testing. |
public LoggingOptions options()
LoggingOptions object to be used for testing.public static RemoteLoggingHelper create(String projectId, InputStream keyStream) throws RemoteLoggingHelper.LoggingHelperException
RemoteLoggingHelper 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 keyRemoteLoggingHelper object for the provided optionsRemoteLoggingHelper.LoggingHelperException - if
keyStream is not a valid JSON key streampublic static RemoteLoggingHelper create() throws RemoteLoggingHelper.LoggingHelperException
RemoteLoggingHelper object using default project id and authentication
credentials.Copyright © 2016 Google. All rights reserved.