1 25 26 package org.jrobin.core; 27 28 import java.io.IOException ; 29 import java.io.File ; 30 31 35 public class RrdFileBackendFactory extends RrdBackendFactory { 36 37 public static final String NAME = "FILE"; 38 39 49 protected RrdBackend open(String path, boolean readOnly, int lockMode) throws IOException { 50 return new RrdFileBackend(path, readOnly, lockMode); 51 } 52 53 58 protected boolean exists(String path) { 59 return new File (path).exists(); 60 } 61 62 66 public String getFactoryName() { 67 return NAME; 68 } 69 } 70 | Popular Tags |