blob: 82d1fafc4e2194bf0b01218cc169ef74b138d9e2 [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
yoshi2fd4c7e2013-11-22 15:47:55 -080021 public void init(final String dbStore, final String conf){
Pankaj Berde15193092013-03-21 17:30:14 -070022
yoshi2fd4c7e2013-11-22 15:47:55 -080023 super.init(dbStore, conf);
Jonathan Hart627f10c2013-01-16 14:20:03 -080024
25 }
26}