Package org.jrobin.core

Examples of org.jrobin.core.Header


    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
        };
      }
View Full Code Here


    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
        };
      }
View Full Code Here

TOP

Related Classes of org.jrobin.core.Header

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.