Package com.google.cloud.hadoop.util
Class GcsJsonApiEvent
- java.lang.Object
-
- com.google.cloud.hadoop.util.GcsJsonApiEvent
-
- All Implemented Interfaces:
IGcsJsonApiEvent
public class GcsJsonApiEvent extends Object implements IGcsJsonApiEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGcsJsonApiEvent.EventTypestatic classGcsJsonApiEvent.RequestType
-
Field Summary
Fields Modifier and Type Field Description static StringBACKOFF_TIMEstatic StringDURATIONstatic StringREQUEST_TYPEstatic StringRETRY_COUNTstatic StringSTATUS_CODE
-
Constructor Summary
Constructors Modifier Constructor Description protectedGcsJsonApiEvent(com.google.api.client.http.HttpRequest request, GcsJsonApiEvent.EventType eventType, Object context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContext()GcsJsonApiEvent.EventTypegetEventType()StringgetMethod()ObjectgetProperty(String key)static GcsJsonApiEventgetResponseEvent(com.google.api.client.http.HttpResponse httpResponse, long duration, Object context)StringtoString()
-
-
-
Field Detail
-
BACKOFF_TIME
public static final String BACKOFF_TIME
- See Also:
- Constant Field Values
-
RETRY_COUNT
public static final String RETRY_COUNT
- See Also:
- Constant Field Values
-
STATUS_CODE
public static final String STATUS_CODE
- See Also:
- Constant Field Values
-
DURATION
public static final String DURATION
- See Also:
- Constant Field Values
-
REQUEST_TYPE
public static final String REQUEST_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GcsJsonApiEvent
protected GcsJsonApiEvent(@Nonnull com.google.api.client.http.HttpRequest request, GcsJsonApiEvent.EventType eventType, Object context)
-
-
Method Detail
-
getResponseEvent
public static GcsJsonApiEvent getResponseEvent(com.google.api.client.http.HttpResponse httpResponse, @Nonnegative long duration, Object context)
-
getEventType
public GcsJsonApiEvent.EventType getEventType()
- Specified by:
getEventTypein interfaceIGcsJsonApiEvent
-
getContext
public Object getContext()
- Specified by:
getContextin interfaceIGcsJsonApiEvent
-
getMethod
public String getMethod()
- Specified by:
getMethodin interfaceIGcsJsonApiEvent
-
getProperty
public Object getProperty(String key)
- Specified by:
getPropertyin interfaceIGcsJsonApiEvent
-
-