Search in sources :

Example 1 with DistributedVirtualPacketStore

use of org.onosproject.incubator.net.virtual.store.impl.DistributedVirtualPacketStore in project onos by opennetworkinglab.

the class VirtualNetworkPacketManagerWithDistStoreTest method setUpDistPacketStore.

private void setUpDistPacketStore() throws TestUtils.TestUtilsException {
    distStore = new DistributedVirtualPacketStore();
    TestUtils.setField(distStore, "cfgService", new ComponentConfigAdapter());
    TestUtils.setField(distStore, "storageService", storageService);
    TestUtils.setField(distStore, "clusterService", clusterService);
    TestUtils.setField(distStore, "communicationService", new TestClusterCommunicationService());
    TestUtils.setField(distStore, "mastershipService", new TestMastershipService());
    distStore.activate(new ComponentContextAdapter());
    // super.setUp() will cause Distributed store to be used.
    packetStore = distStore;
}
Also used : ComponentConfigAdapter(org.onosproject.cfg.ComponentConfigAdapter) ComponentContextAdapter(org.onlab.osgi.ComponentContextAdapter) DistributedVirtualPacketStore(org.onosproject.incubator.net.virtual.store.impl.DistributedVirtualPacketStore)

Aggregations

ComponentContextAdapter (org.onlab.osgi.ComponentContextAdapter)1 ComponentConfigAdapter (org.onosproject.cfg.ComponentConfigAdapter)1 DistributedVirtualPacketStore (org.onosproject.incubator.net.virtual.store.impl.DistributedVirtualPacketStore)1