当前位置: 首页>>代码示例>>Java>>正文


Java Intent.unbindIdGenerator方法代码示例

本文整理汇总了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);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:24,代码来源:PtToPtIntentVirtualNetworkProviderTest.java

示例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");
}
 
开发者ID:shlee89,项目名称:athena,代码行数:17,代码来源:IntentManager.java

示例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;
}
 
开发者ID:shlee89,项目名称:athena,代码行数:12,代码来源:PtToPtIntentVirtualNetworkProviderTest.java

示例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);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:14,代码来源:IntentCleanupTestMock.java

示例5: localTearDown

import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
/**
 * Removes id generator from the Intent class.
 */
@After
public void localTearDown() {
    Intent.unbindIdGenerator(mockGenerator);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:8,代码来源:IntentAccumulatorTest.java

示例6: tearDown

import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void tearDown() {
    cleanup.deactivate();

    Intent.unbindIdGenerator(idGenerator);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:7,代码来源:IntentCleanupTest.java

示例7: tearDown

import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void tearDown() {
    Intent.unbindIdGenerator(idGenerator);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:5,代码来源:CompilingTest.java

示例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);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:9,代码来源:ObjectiveTrackerTest.java

示例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);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:8,代码来源:PathIntentCompilerTest.java

示例10: cleanUp

import org.onosproject.net.intent.Intent; //导入方法依赖的package包/类
@After
public void cleanUp() {
    intentStore.deactivate();
    Intent.unbindIdGenerator(idGenerator);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:6,代码来源:GossipIntentStoreTest.java


注:本文中的org.onosproject.net.intent.Intent.unbindIdGenerator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。