HIGUCHI Yuta | 0813793 | 2013-06-17 14:11:50 -0700 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.core.internal; |
Jonathan Hart | 627f10c | 2013-01-16 14:20:03 -0800 | [diff] [blame] | 2 | |
| 3 | import java.util.Set; |
| 4 | |
HIGUCHI Yuta | ed49ef7 | 2013-06-12 11:34:10 -0700 | [diff] [blame] | 5 | import net.onrc.onos.ofcontroller.core.internal.SwitchStorageImpl; |
| 6 | |
Jonathan Hart | 627f10c | 2013-01-16 14:20:03 -0800 | [diff] [blame] | 7 | import com.thinkaurelius.titan.core.TitanGraph; |
| 8 | import com.tinkerpop.blueprints.Vertex; |
| 9 | import com.tinkerpop.blueprints.TransactionalGraph.Conclusion; |
| 10 | |
| 11 | /** |
| 12 | * Seam that allows me to set up a testable instance of SwitchStorageImpl that |
| 13 | * writes to a file database rather than a Cassandra cluster. |
| 14 | * It seems the init() API on SwitchStorageImpl might change so I won't rely |
| 15 | * on it yet. |
| 16 | * |
| 17 | * @author jono |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | public class TestableSwitchStorageImpl extends SwitchStorageImpl { |
| 22 | |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 23 | public TestableSwitchStorageImpl(){ |
Jonathan Hart | 627f10c | 2013-01-16 14:20:03 -0800 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | @Override |
| 27 | public void init(String conf){ |
Pankaj Berde | 1519309 | 2013-03-21 17:30:14 -0700 | [diff] [blame] | 28 | |
| 29 | super.init(conf); |
Jonathan Hart | 627f10c | 2013-01-16 14:20:03 -0800 | [diff] [blame] | 30 | |
| 31 | } |
| 32 | } |