Class GoogleApiDebugOptions.GoogleApiTracer
java.lang.Object
java.util.AbstractMap<String,String>
java.util.HashMap<String,String>
org.apache.beam.sdk.extensions.gcp.options.GoogleApiDebugOptions.GoogleApiTracer
- All Implemented Interfaces:
GoogleClientRequestInitializer,Serializable,Cloneable,Map<String,String>
- Enclosing interface:
GoogleApiDebugOptions
public static class GoogleApiDebugOptions.GoogleApiTracer
extends HashMap<String,String>
implements GoogleClientRequestInitializer
A
GoogleClientRequestInitializer that adds the trace destination to Google API calls.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTraceFor(AbstractGoogleClientRequest<?> request, String traceDestination) Creates aGoogleApiDebugOptions.GoogleApiTracerthat sets the tracetraceDestinationon all calls that match for the given request type.addTraceFor(AbstractGoogleClient client, String traceDestination) Creates aGoogleApiDebugOptions.GoogleApiTracerthat sets the trace destination on all calls that match the given client type.voidinitialize(AbstractGoogleClientRequest<?> request) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
GoogleApiTracer
public GoogleApiTracer()
-
-
Method Details
-
addTraceFor
public GoogleApiDebugOptions.GoogleApiTracer addTraceFor(AbstractGoogleClient client, String traceDestination) Creates aGoogleApiDebugOptions.GoogleApiTracerthat sets the trace destination on all calls that match the given client type. -
addTraceFor
public GoogleApiDebugOptions.GoogleApiTracer addTraceFor(AbstractGoogleClientRequest<?> request, String traceDestination) Creates aGoogleApiDebugOptions.GoogleApiTracerthat sets the tracetraceDestinationon all calls that match for the given request type. -
initialize
- Specified by:
initializein interfaceGoogleClientRequestInitializer- Throws:
IOException
-