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


Java IEntityClassifierService类代码示例

本文整理汇总了Java中net.floodlightcontroller.devicemanager.IEntityClassifierService的典型用法代码示例。如果您正苦于以下问题:Java IEntityClassifierService类的具体用法?Java IEntityClassifierService怎么用?Java IEntityClassifierService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IEntityClassifierService类属于net.floodlightcontroller.devicemanager包,在下文中一共展示了IEntityClassifierService类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext fmc) {
    this.perClassIndices =
            new HashSet<EnumSet<DeviceField>>();
    addIndex(true, EnumSet.of(DeviceField.IPV4));

    this.deviceListeners = new HashSet<IDeviceListener>();
    this.suppressAPs =
            Collections.synchronizedSet(new HashSet<SwitchPort>());

    this.floodlightProvider =
            fmc.getServiceImpl(IFloodlightProviderService.class);
    this.storageSource =
            fmc.getServiceImpl(IStorageSourceService.class);
    this.topology =
            fmc.getServiceImpl(ITopologyService.class);
    this.restApi = fmc.getServiceImpl(IRestApiService.class);
    this.threadPool = fmc.getServiceImpl(IThreadPoolService.class);
    this.flowReconcileMgr = fmc.getServiceImpl(IFlowReconcileService.class);
    this.entityClassifier = fmc.getServiceImpl(IEntityClassifierService.class);
}
 
开发者ID:vishalshubham,项目名称:Multipath-Hedera-system-in-Floodlight-controller,代码行数:22,代码来源:DeviceManagerImpl.java

示例2: init

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext fmc) {
    this.perClassIndices =
            new HashSet<EnumSet<DeviceField>>();
    addIndex(true, EnumSet.of(DeviceField.IPV4));

    this.deviceListeners = new ListenerDispatcher<String, IDeviceListener>();
    this.suppressAPs = Collections.newSetFromMap(
                           new ConcurrentHashMap<SwitchPort, Boolean>());

    this.floodlightProvider =
            fmc.getServiceImpl(IFloodlightProviderService.class);
    this.storageSource =
            fmc.getServiceImpl(IStorageSourceService.class);
    this.topology =
            fmc.getServiceImpl(ITopologyService.class);
    this.restApi = fmc.getServiceImpl(IRestApiService.class);
    this.threadPool = fmc.getServiceImpl(IThreadPoolService.class);
    this.flowReconcileMgr = fmc.getServiceImpl(IFlowReconcileService.class);
    this.entityClassifier = fmc.getServiceImpl(IEntityClassifierService.class);
    this.debugCounters = fmc.getServiceImpl(IDebugCounterService.class);
}
 
开发者ID:dana-i2cat,项目名称:floodlight-nfv,代码行数:23,代码来源:DeviceManagerImpl.java

示例3: init

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext fmc) {
    this.perClassIndices =
            new HashSet<EnumSet<DeviceField>>();
    addIndex(true, EnumSet.of(DeviceField.IPV4));

    this.reclassifyDeviceListeners = new HashSet<IDeviceListener>();
    this.reconcileDeviceListeners = new HashSet<IDeviceListener>();
    this.suppressAPs = Collections.newSetFromMap(
                           new ConcurrentHashMap<SwitchPort, Boolean>());

    this.floodlightProvider =
            fmc.getServiceImpl(IFloodlightProviderService.class);
    this.storageSource =
            fmc.getServiceImpl(IStorageSourceService.class);
    this.topology =
            fmc.getServiceImpl(ITopologyService.class);
    this.restApi = fmc.getServiceImpl(IRestApiService.class);
    this.threadPool = fmc.getServiceImpl(IThreadPoolService.class);
    this.flowReconcileMgr = fmc.getServiceImpl(IFlowReconcileService.class);
    this.entityClassifier = fmc.getServiceImpl(IEntityClassifierService.class);
}
 
开发者ID:wallnerryan,项目名称:FL_HAND,代码行数:23,代码来源:DeviceManagerImpl.java

示例4: getServiceImpls

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {
    Map<Class<? extends IFloodlightService>,
    IFloodlightService> m = new HashMap<Class<? extends IFloodlightService>, IFloodlightService>();
    // We are the class that implements the service
    m.put(IEntityClassifierService.class, this);
    return m;
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:9,代码来源:DefaultEntityClassifier.java

示例5: getModuleDependencies

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {
	Collection<Class<? extends IFloodlightService>> l =
			new ArrayList<Class<? extends IFloodlightService>>();
	l.add(IFloodlightProviderService.class);
	l.add(IStorageSourceService.class);
	l.add(ITopologyService.class);
	l.add(IRestApiService.class);
	l.add(IThreadPoolService.class);
	l.add(IEntityClassifierService.class);
	l.add(ISyncService.class);
	return l;
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:14,代码来源:DeviceManagerImpl.java

示例6: init

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext fmc) throws FloodlightModuleException {
	this.perClassIndices =
			new HashSet<EnumSet<DeviceField>>();
	addIndex(true, EnumSet.of(DeviceField.IPv4));
	addIndex(true, EnumSet.of(DeviceField.IPv6));

	this.deviceListeners = new ListenerDispatcher<String, IDeviceListener>();
	this.suppressAPs = Collections.newSetFromMap(
			new ConcurrentHashMap<SwitchPort, Boolean>());

	this.floodlightProvider =
			fmc.getServiceImpl(IFloodlightProviderService.class);
	this.storageSource =
			fmc.getServiceImpl(IStorageSourceService.class);
	this.topology =
			fmc.getServiceImpl(ITopologyService.class);
	this.restApi = fmc.getServiceImpl(IRestApiService.class);
	this.threadPool = fmc.getServiceImpl(IThreadPoolService.class);
	this.entityClassifier = fmc.getServiceImpl(IEntityClassifierService.class);
	this.debugCounters = fmc.getServiceImpl(IDebugCounterService.class);
	this.debugEventService = fmc.getServiceImpl(IDebugEventService.class);
	this.syncService = fmc.getServiceImpl(ISyncService.class);
	this.deviceSyncManager = new DeviceSyncManager();
	this.haListenerDelegate = new HAListenerDelegate();
	registerDeviceManagerDebugCounters();
	registerDeviceManagerDebugEvents();
	this.addListener(new DeviceDebugEventLogger());
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:30,代码来源:DeviceManagerImpl.java

示例7: setEntityClassifier

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
/**
 * Set a new IEntityClassifier
 * Use this as a quick way to use a particular entity classifier in a
 * single test without having to setup the full FloodlightModuleContext
 * again.
 * @param ecs
 */
public void setEntityClassifier(IEntityClassifierService ecs) {
	this.entityClassifier = ecs;
	try {
		this.startUp(null);
	} catch (FloodlightModuleException e) {
		throw new RuntimeException(e);
	}
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:16,代码来源:MockDeviceManager.java

示例8: init

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext fmc) throws FloodlightModuleException {
	this.perClassIndices =
			new HashSet<EnumSet<DeviceField>>();
	addIndex(true, EnumSet.of(DeviceField.IPV4));

	this.deviceListeners = new ListenerDispatcher<String, IDeviceListener>();
	this.suppressAPs = Collections.newSetFromMap(
			new ConcurrentHashMap<SwitchPort, Boolean>());

	this.floodlightProvider =
			fmc.getServiceImpl(IFloodlightProviderService.class);
	this.storageSource =
			fmc.getServiceImpl(IStorageSourceService.class);
	this.topology =
			fmc.getServiceImpl(ITopologyService.class);
	this.restApi = fmc.getServiceImpl(IRestApiService.class);
	this.threadPool = fmc.getServiceImpl(IThreadPoolService.class);
	this.entityClassifier = fmc.getServiceImpl(IEntityClassifierService.class);
	this.debugCounters = fmc.getServiceImpl(IDebugCounterService.class);
	this.debugEventService = fmc.getServiceImpl(IDebugEventService.class);
	this.syncService = fmc.getServiceImpl(ISyncService.class);
	this.deviceSyncManager = new DeviceSyncManager();
	this.haListenerDelegate = new HAListenerDelegate();
	registerDeviceManagerDebugCounters();
	registerDeviceManagerDebugEvents();
	this.addListener(new DeviceDebugEventLogger());
}
 
开发者ID:nsg-ethz,项目名称:iTAP-controller,代码行数:29,代码来源:DeviceManagerImpl.java

示例9: getModuleServices

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public Collection<Class<? extends IFloodlightService>> getModuleServices() {
    Collection<Class<? extends IFloodlightService>> l = 
            new ArrayList<Class<? extends IFloodlightService>>();
    l.add(IEntityClassifierService.class);
    return l;
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:8,代码来源:DefaultEntityClassifier.java

示例10: getServiceImpls

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {
    Map<Class<? extends IFloodlightService>,
    IFloodlightService> m = 
    new HashMap<Class<? extends IFloodlightService>,
                IFloodlightService>();
    // We are the class that implements the service
    m.put(IEntityClassifierService.class, this);
    return m;
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:11,代码来源:DefaultEntityClassifier.java

示例11: getModuleDependencies

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {
    Collection<Class<? extends IFloodlightService>> l =
            new ArrayList<Class<? extends IFloodlightService>>();
    l.add(IFloodlightProviderService.class);
    l.add(IStorageSourceService.class);
    l.add(ITopologyService.class);
    l.add(IRestApiService.class);
    l.add(IThreadPoolService.class);
    l.add(IFlowReconcileService.class);
    l.add(IEntityClassifierService.class);
    l.add(ISyncService.class);
    return l;
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:15,代码来源:DeviceManagerImpl.java

示例12: init

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext fmc) throws FloodlightModuleException {
    this.perClassIndices =
            new HashSet<EnumSet<DeviceField>>();
    addIndex(true, EnumSet.of(DeviceField.IPV4));

    this.deviceListeners = new ListenerDispatcher<String, IDeviceListener>();
    this.suppressAPs = Collections.newSetFromMap(
                           new ConcurrentHashMap<SwitchPort, Boolean>());

    this.floodlightProvider =
            fmc.getServiceImpl(IFloodlightProviderService.class);
    this.storageSource =
            fmc.getServiceImpl(IStorageSourceService.class);
    this.topology =
            fmc.getServiceImpl(ITopologyService.class);
    this.restApi = fmc.getServiceImpl(IRestApiService.class);
    this.threadPool = fmc.getServiceImpl(IThreadPoolService.class);
    this.flowReconcileMgr = fmc.getServiceImpl(IFlowReconcileService.class);
    this.flowReconcileEngine = fmc.getServiceImpl(IFlowReconcileEngineService.class);
    this.entityClassifier = fmc.getServiceImpl(IEntityClassifierService.class);
    this.debugCounters = fmc.getServiceImpl(IDebugCounterService.class);
    this.debugEvents = fmc.getServiceImpl(IDebugEventService.class);
    this.syncService = fmc.getServiceImpl(ISyncService.class);
    this.deviceSyncManager = new DeviceSyncManager();
    this.haListenerDelegate = new HAListenerDelegate();
    registerDeviceManagerDebugCounters();
    registerDeviceManagerDebugEvents();
    this.addListener(new DeviceDebugEventLogger());
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:31,代码来源:DeviceManagerImpl.java

示例13: setEntityClassifier

import net.floodlightcontroller.devicemanager.IEntityClassifierService; //导入依赖的package包/类
/**
 * Set a new IEntityClassifier
 * Use this as a quick way to use a particular entity classifier in a
 * single test without having to setup the full FloodlightModuleContext
 * again.
 * @param ecs
 */
public void setEntityClassifier(IEntityClassifierService ecs) {
    this.entityClassifier = ecs;
    try {
        this.startUp(null);
    } catch (FloodlightModuleException e) {
        throw new RuntimeException(e);
    }
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:16,代码来源:MockDeviceManager.java


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