@Override public synchronized int getOpenCount(RrdDb rrdDb) throws IOException { String canonicalPath = rrdDb.getCanonicalPath(); RrdEntry ref = rrdMap.get(canonicalPath); if(ref == null) return 0; return ref.count; }
@Override public int getOpenCount(RrdDb rrdDb) throws IOException { String canonicalPath = rrdDb.getCanonicalPath(); RrdEntry ref = pool.get(canonicalPath); if(ref == null) return 0; return ref.count.get(); }
void validateHeader() throws IOException { if (!isRrd4jHeader()) { throw new IOException("Invalid file header. File [" + parentDb.getCanonicalPath() + "] is not a RRD4J RRD file"); } }
void validateHeader() throws IOException { if (!isRrd4jHeader()) { throw new InvalidRrdException("Invalid file header. File [" + parentDb.getCanonicalPath() + "] is not a RRD4J RRD file"); } }
String canonicalPath = rrdDb.getCanonicalPath(); RrdEntry ref = getEntry(canonicalPath);