本文整理汇总了Java中org.onosproject.net.intent.Intent.unbindIdGenerator方法的典型用法代码示例。如果您正苦于以下问题:Java Intent.unbindIdGenerator方法的具体用法?Java Intent.unbindIdGenerator怎么用?Java Intent.unbindIdGenerator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.onosproject.net.intent.Intent
的用法示例。
在下文中一共展示了Intent.unbindIdGenerator方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@Before
public void setUp() {
provider = new PtToPtIntentVirtualNetworkProvider();
provider.providerRegistry = virtualNetworkRegistry;
final CoreService mockCoreService = createMock(CoreService.class);
provider.coreService = mockCoreService;
expect(mockCoreService.registerApplication(PtToPtIntentVirtualNetworkProvider.PTPT_INTENT_APPID))
.andReturn(APP_ID).anyTimes();
replay(mockCoreService);
Intent.unbindIdGenerator(idGenerator);
Intent.bindIdGenerator(idGenerator);
intentService.addListener(listener);
provider.intentService = intentService;
// Register a compiler and an installer both setup for success.
intentExtensionService = intentService;
intentExtensionService.registerCompiler(PointToPointIntent.class, compiler);
provider.activate();
created = new Semaphore(0, true);
removed = new Semaphore(0, true);
}
示例2: deactivate
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@Deactivate
public void deactivate() {
intentInstaller.init(null, null, null, null);
if (skipReleaseResourcesOnWithdrawal) {
store.unsetDelegate(testOnlyDelegate);
} else {
store.unsetDelegate(delegate);
}
configService.unregisterProperties(getClass(), false);
trackerService.unsetDelegate(topoDelegate);
eventDispatcher.removeSink(IntentEvent.class);
batchExecutor.shutdown();
workerExecutor.shutdown();
Intent.unbindIdGenerator(idGenerator);
log.info("Stopped");
}
示例3: tearDown
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void tearDown() {
Intent.unbindIdGenerator(idGenerator);
intentService.removeListener(listener);
provider.deactivate();
provider.providerRegistry = null;
provider.coreService = null;
provider.intentService = null;
created = null;
removed = null;
}
示例4: tearDown
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void tearDown() {
service.removeListener(cleanup);
expectLastCall().once();
replay(service);
cleanup.deactivate();
verify(service);
reset(service);
Intent.unbindIdGenerator(idGenerator);
}
示例5: localTearDown
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
/**
* Removes id generator from the Intent class.
*/
@After
public void localTearDown() {
Intent.unbindIdGenerator(mockGenerator);
}
示例6: tearDown
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void tearDown() {
cleanup.deactivate();
Intent.unbindIdGenerator(idGenerator);
}
示例7: tearDown
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void tearDown() {
Intent.unbindIdGenerator(idGenerator);
}
示例8: tearDown
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
/**
* Code to clean up shared by all test case.
*/
@After
public void tearDown() {
tracker.unsetDelegate(delegate);
Intent.unbindIdGenerator(mockGenerator);
}
示例9: tearDown
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
/**
* Tears down objects used in all the test cases.
*/
@After
public void tearDown() {
Intent.unbindIdGenerator(idGenerator);
}
示例10: cleanUp
import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void cleanUp() {
intentStore.deactivate();
Intent.unbindIdGenerator(idGenerator);
}