try {
values = null;
String path = file.getAbsolutePath();
RrdDb rrd = new RrdDb(path, true);
try {
Header header = rrd.getHeader();
String signature = header.getSignature();
String step = "" + header.getStep();
String lastTimestamp = header.getLastUpdateTime() + " [" +
new Date(header.getLastUpdateTime() * 1000L) + "]";
String datasources = "" + header.getDsCount();
String archives = "" + header.getArcCount();
String size = rrd.getRrdBackend().getLength() + " bytes";
values = new Object[] {
path, signature, step, lastTimestamp, datasources, archives, size
};
}