-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/16/2012 05:23 AM, xuemei wrote:

> Thanks for your reply, I wish you got a good weekend.

Thanks, it was a pretty good one :)

> I am trying to describe it in small step to make people understand
>  more easily, I dont believe it is very narrow thing.

The reason I asked for a higher-level description of your goals is that
there may be other ways to do what you want.  There is usually "more
than one way" to do a given thing in OpenNMS, and sometimes (especially
when seeking help) it helps to step back from the code and talk about
your chosen approach.

> What I am trying to do is to fill those gap, I got all the data,
> but not able to update the file when the timestamp is earlier than
> last record.

So this is not something that you wish to do in real-time?  I hope
that's the case, because back-filling data will be very I/O-intensive
compared to just writing a single sample.

I suggest looking at the "rrd-converter" tool, which was designed for
turning 1:1 style JRobin files (one DS per file) into storeByGroup style
JRobin files (multiple DS per file).  You should find the right pattern
there for building a new JRobin file from in-memory data.  Here's the
link to the code:

http://opennms.git.sourceforge.net/git/gitweb.cgi?p=opennms/opennms;a=tree;f=opennms-tools/opennms-rrd-converter;h=27763e6f8a518af6eb31dfb1220742f7aff3746b;hb=HEAD

You'll notice that we don't use the RrdStrategy code in this utility,
but go directly to the JRobin APIs; that's because the strategy was
never designed to provide the level of functionality required for these
operations.

> But as I said, if the inspector tool could insert value and save 
> successfully, I would like to see at which step I could modidy the
>  rrd tool.

I've never looked into just how the RrdInspector does its work, but
it's probably the same or similar mechanism to the converter.  JRobin
itself is also free software, so you can take a look at the
RrdInspector class to find out.

http://jrobin.git.sourceforge.net/git/gitweb-index.cgi

> By the way, I am a development engineer workinig in Paris, most of
> my clients are from telecom, and I would like to have some
> experience for implementing openNMS.

Welcome!  Someday I would like to have some experience working in Paris :)

- -jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJQBDO9AAoJEEfedldKS64seggP/1KpqlHk02wE0Ww+wEYFaCYV
zJhdkw/D+08utoCKe/qnRRZmUq8SAYPepuLN2oOCo6ESJk7v2XF5D2qvyDPpIdWb
mUvqQYoQlG8bDesPBAt8jWuVfVfO+hIflacBtaOkbgaAnJDlFuXCJAWN8uJcfE50
ct/GBnpqWDgEzumq/m9lAdNKxduX/At5HmDzyJ0Eme2LMh6ytrV4L3IPPEfd9Neu
zUvBDQkZADNyv2XbL3zxQiZ8EyKMwYMcfVL+ijUsKQFn64WkDZTJQLttB+e4qKXe
u60cWSEVrpOG/pTlFk2d+DRY9esV5jyo+b6Bnyjqyu4ojLJN2e7SpNUdz+R6n5ZR
0tJNSbwViVvOWYI5RW8iTBObEA9vqeqixS/f0tnGbaGw/LBtuciAOJBmQ0SGANoH
EJrjuPKEs31TdZ5VGsJb+R71CfSxBH4aPf5FkYRKkGH1YfeUjRwt2W6qgWZXk9ig
yIJlERZt43EOPI8YQeETTjeMrQ8FER2gv00daa/sTxKkTADP1npf93cUqFYbhrAU
cHGdpZlmHLdBl/vUoHzybsyojk8rbc5y10daUeXSnNVL+KYO61whewTPcjwGh4qV
Ks53SCjV3bh/hLB+bfQJbJya509ijDswQiKMhyaw+W7WA1PfsyoRrx7n03wbaysR
R4txBYBChanSl0T4XOTm
=YzFh
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to