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;
}
Aggregations