public static GetPersonTrackingResultJsonUnmarshaller getInstance() { if (instance == null) instance = new GetPersonTrackingResultJsonUnmarshaller(); return instance; } }
@SdkInternalApi final GetPersonTrackingResult executeGetPersonTracking(GetPersonTrackingRequest getPersonTrackingRequest) { ExecutionContext executionContext = createExecutionContext(getPersonTrackingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<GetPersonTrackingRequest> request = null; Response<GetPersonTrackingResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetPersonTrackingRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getPersonTrackingRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Rekognition"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetPersonTracking"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler<AmazonWebServiceResponse<GetPersonTrackingResult>> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetPersonTrackingResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } }
public static GetPersonTrackingResultJsonUnmarshaller getInstance() { if (instance == null) instance = new GetPersonTrackingResultJsonUnmarshaller(); return instance; } }
awsRequestMetrics.endEvent(Field.RequestMarshallTime); Unmarshaller<GetPersonTrackingResult, JsonUnmarshallerContext> unmarshaller = new GetPersonTrackingResultJsonUnmarshaller(); JsonResponseHandler<GetPersonTrackingResult> responseHandler = new JsonResponseHandler<GetPersonTrackingResult>( unmarshaller);