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