rrd4j with java
I am currently developing a program with Java that collect and illustrate开发者_运维知识库 IP traffic from similar information and draw the graph of this information. So I must use rrd4j rrd with java to save the data flow from a JTable in another table first and then use RRDTool to draw the graph . but my problem is how to have the info stored in rrd and also how to create database RRD4J
thank you
First of all I would check rrd4j project home page and check some documentation. On the main page there is usage example of how you create the database and I think it's quite clear and no needed to be explained, since it would be copy+paste. Now what about storing the information.. First of all you need to define how much and what type of data you want to store. For example in the project I'm working, we are aggregating data daily, weekly, monthly and yearly. You also need to specify what is the frequence of data collection: because it really makes difference if it's 5 seconds or 5 minutes. You should also have a look at former rrd project homepage and ganglia, the part where you defining the RRD files creation, it will really help you to understand how RRDTool and data storing works.
精彩评论