Re: How to use net.jxta.meter

[email protected] Mon, 29 Aug 2005 21:17:41 +0200
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
Thanks Vanessa for your suggestion. Here are my comments:

I've examined the code from JxtaMonitorLogger but i cannot create an 
instance of
the object ServiceMonitorFilter. I always receive a
net.jxta.meter.MonitorFilterException.

In the other hand, if i call the function from the PeerInfoService:

peerInfoService.getPeerMonitorInfo().allowsMonitoring() - boolean

I always receive "false". How can i launch my peer with monitoring 
allowed? I'm
using the jxta.jar from J2SE 2.3.4.

Does anybody know any other good example about peer monitoring in JXTA?

THANKS IN ADVANCE!

Joan

Quoting Vanessa Williams <[email protected]>:

> On 29-Aug-05, at 9:40 AM, [email protected] wrote:
>
>> Hi, I'm trying to understand the implementation of the package  
>> net.jxta.meter
>> that seems to allow yo to monitor several statitics from local and  remote
>> peers.
>>
>> My problem is that i cannot find any suitable sample code that uses  
>> the classes
>> from this package. And I'm trying to use the API by myself but i'm  
>> not able to
>> allow the monitoring on my node, and all the statistics i got are  0,0,0...
>>
>> Any idea or sample code?
>>
>
> http://meter.jxta.org/
>
> The source for JxtaMonitorLogger seems a reasonable starting point.
>
>> Thanks in advance
>> :)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>