public void putClientMetrics ( ClientMetrics clientMetrics ) throws GalaxyFDSClientException { URI uri = formatUri ( fdsConfig . getBaseUri ( ) , "" , ( SubResource [ ] ) null ) ; ContentType contentType = ContentType . APPLICATION_JSON ; HashMap < String , String > params = new HashMap < String , String > ( ) ; params . put ( "clientMetrics" , "" ) ; HttpEntity requestEntity = getJsonStringEntity ( clientMetrics , contentType ) ; HttpUriRequest httpRequest = prepareRequestMethod ( uri , HttpMethod . PUT , contentType , null , params , null , requestEntity ) ; HttpResponse response = executeHttpRequest ( httpRequest , Action . PutClientMetrics ) ; processResponse ( response , null , "put client metrics" ) ; }
Put client metrics to server . This method should only be used internally .