Hi,

I would also direct you at an issue [0] and set of patches for trunk
and 2.x which use the inet socket to obtain the host IP address if
this is required. It would not be very difficult to get this patch to
also/either obtain the response time I would not think...

Also if anyone feels like developing this patch further it would be great.

hth

Lewis

[0] https://issues.apache.org/jira/browse/NUTCH-1360

On Sun, Oct 14, 2012 at 4:03 PM, Tejas Patil <[email protected]> wrote:
> I dont think that there is any configuration that can be used to get this
> logged. (if anybody knows, please share that)
> At the top my head, I think that by a small tweak in the code this can be
> obtained.
>
> In
> http://svn.apache.org/viewvc/nutch/trunk/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java?view=markup
> Line no #142:
> *Response response = getResponse(u, datum, false); // make a request*
>
> You can measure the time taken for execution of this statement by adding
> timer.
>
> Thanks,
> Tejas Patil
>
> On Sat, Oct 13, 2012 at 10:33 PM, Prashant Ladha
> <[email protected]>wrote:
>
>> Hi,
>> I am new to Nutch.
>> Can we get the response time for the URLs that have been cached ? i.e. how
>> long the site took to respond to the request?
>>
>> If you can point me to any documentation also, that would be helpful.
>>
>> Thanks.
>>



-- 
Lewis

Reply via email to