Re: How to use net.jxta.meter
[email protected] Tue, 30 Aug 2005 00:55:00 +0200
| Newsgroups | gmane.comp.java.jxta.user |
|---|---|
| Message-ID | <[email protected]> |
Yes Vanessa, you were right. I had to download Ant from sourceforge and recompile all the platform changing one parameter from the jxta/user.properties. After several failed attempts, i finally compiled a correct jxta.jar, and after replacing it in my classpath all the peer monitoring worked fine. Thank you very much, see you here! Joan Quoting Vanessa Williams <[email protected]>: > I haven't done it myself (I don't need the level of detail provided > by the built-in metering stuff), but the instructions for building > JXTA with metering turned on are here: http://meter.jxta.org/docs/ > BuildingAndConfiguringMonitoring.pdf > > You will have to change some property files and rebuild before you > can run a peer with monitoring. > > On 29-Aug-05, at 3:17 PM, [email protected] wrote: > >> 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] >>> >>> >>> >> >> >> >> >> --------------------------------------------------------------------- >> 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] > >