blob: e0b34e1bfa3c58d7ecc3e55c080d1c159062e002 [file] [log] [blame]
HIGUCHI Yuta08137932013-06-17 14:11:50 -07001package net.onrc.onos.ofcontroller.core.internal;
Jonathan Hart627f10c2013-01-16 14:20:03 -08002
HIGUCHI Yutaed49ef72013-06-12 11:34:10 -07003import net.onrc.onos.ofcontroller.core.internal.SwitchStorageImpl;
4
Jonathan Hart627f10c2013-01-16 14:20:03 -08005/**
6 * Seam that allows me to set up a testable instance of SwitchStorageImpl that
7 * writes to a file database rather than a Cassandra cluster.
8 * It seems the init() API on SwitchStorageImpl might change so I won't rely
9 * on it yet.
10 *
11 * @author jono
12 *
13 */
14
15public class TestableSwitchStorageImpl extends SwitchStorageImpl {
16
Pankaj Berde15193092013-03-21 17:30:14 -070017 public TestableSwitchStorageImpl(){
Jonathan Hart627f10c2013-01-16 14:20:03 -080018 }
19
20 @Override
21 public void init(String conf){
Pankaj Berde15193092013-03-21 17:30:14 -070022
23 super.init(conf);
Jonathan Hart627f10c2013-01-16 14:20:03 -080024
25 }
26}