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


Java IRestApiService类代码示例

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


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

示例1: setUp

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Before
public void setUp() throws FloodlightModuleException {
    final SwitchManager switchManager = new SwitchManager();
    final PathVerificationService pathVerificationService = new PathVerificationService();

    ofSwitchService = createMock(IOFSwitchService.class);
    producer = createMock(KafkaMessageProducer.class);

    context.addService(IOFSwitchService.class, ofSwitchService);
    context.addService(IRestApiService.class, null);
    context.addService(SwitchEventCollector.class, null);
    context.addService(KafkaMessageProducer.class, producer);
    context.addService(IPathVerificationService.class, pathVerificationService);
    context.addService(ISwitchManager.class, switchManager);

    switchManager.init(context);

    collector = new KafkaMessageCollector();
    context.addConfigParam(collector, "topic", "");
    context.addConfigParam(collector, "bootstrap-servers", "");
    collector.init(context);

    initScheme();
}
 
开发者ID:telstra,项目名称:open-kilda,代码行数:25,代码来源:ReplaceInstallFlowTest.java

示例2: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext context)
		throws FloodlightModuleException {
	floodlightProviderService = context.getServiceImpl(IFloodlightProviderService.class);
	restApiService = context.getServiceImpl(IRestApiService.class);
	deviceService = context.getServiceImpl(IDeviceService.class);

	vNetsByGuid = new ConcurrentHashMap<String, VirtualNetwork>();
	nameToGuid = new ConcurrentHashMap<String, String>();
	guidToGateway = new ConcurrentHashMap<String, IPv4Address>();
	gatewayToGuid = new ConcurrentHashMap<IPv4Address, Set<String>>();
	macToGuid = new ConcurrentHashMap<MacAddress, String>();
	portToMac = new ConcurrentHashMap<String, MacAddress>();
	macToGateway = new ConcurrentHashMap<MacAddress, IPv4Address>();
	deviceListener = new DeviceListenerImpl();

}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:18,代码来源:VirtualNetworkFilter.java

示例3: getModuleDependencies

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public Collection<Class<? extends IFloodlightService>>
        getModuleDependencies() {
    Collection<Class<? extends IFloodlightService>> l = 
            new ArrayList<Class<? extends IFloodlightService>>();
    l.add(IFloodlightProviderService.class);
    l.add(IRestApiService.class);
    l.add(IOFSwitchService.class);
    l.add(IDeviceService.class);
    l.add(IDebugCounterService.class);
    l.add(ITopologyService.class);
    l.add(IRoutingService.class);
    l.add(IStaticFlowEntryPusherService.class);

    return l;
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:17,代码来源:LoadBalancer.java

示例4: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext context)
                                             throws FloodlightModuleException {
    floodlightProviderService = context.getServiceImpl(IFloodlightProviderService.class);
    restApiService = context.getServiceImpl(IRestApiService.class);
    debugCounterService = context.getServiceImpl(IDebugCounterService.class);
    deviceManagerService = context.getServiceImpl(IDeviceService.class);
    routingEngineService = context.getServiceImpl(IRoutingService.class);
    topologyService = context.getServiceImpl(ITopologyService.class);
    sfpService = context.getServiceImpl(IStaticFlowEntryPusherService.class);
    switchService = context.getServiceImpl(IOFSwitchService.class);
    
    vips = new HashMap<String, LBVip>();
    pools = new HashMap<String, LBPool>();
    members = new HashMap<String, LBMember>();
    vipIpToId = new HashMap<Integer, String>();
    vipIpToMac = new HashMap<Integer, MacAddress>();
    memberIpToId = new HashMap<Integer, String>();
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:20,代码来源:LoadBalancer.java

示例5: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext context)
		throws FloodlightModuleException {
	linkDiscoveryService = context.getServiceImpl(ILinkDiscoveryService.class);
	threadPoolService = context.getServiceImpl(IThreadPoolService.class);
	floodlightProviderService = context.getServiceImpl(IFloodlightProviderService.class);
	switchService = context.getServiceImpl(IOFSwitchService.class);
	restApiService = context.getServiceImpl(IRestApiService.class);
	debugCounterService = context.getServiceImpl(IDebugCounterService.class);
	debugEventService = context.getServiceImpl(IDebugEventService.class);

	switchPorts = new HashMap<DatapathId, Set<OFPort>>();
	switchPortLinks = new HashMap<NodePortTuple, Set<Link>>();
	directLinks = new HashMap<NodePortTuple, Set<Link>>();
	portBroadcastDomainLinks = new HashMap<NodePortTuple, Set<Link>>();
	tunnelPorts = new HashSet<NodePortTuple>();
	topologyAware = new ArrayList<ITopologyListener>();
	ldUpdates = new LinkedBlockingQueue<LDUpdate>();
	haListener = new HAListenerDelegate();
	registerTopologyDebugCounters();
	registerTopologyDebugEvents();
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:23,代码来源:TopologyManager.java

示例6: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext context) throws FloodlightModuleException {
   controller.setStorageSourceService(
       context.getServiceImpl(IStorageSourceService.class));
   controller.setPktInProcessingService(
       context.getServiceImpl(IPktInProcessingTimeService.class));
   controller.setDebugCounter(
       context.getServiceImpl(IDebugCounterService.class));
   controller.setDebugEvent(
       context.getServiceImpl(IDebugEventService.class));
   controller.setRestApiService(
       context.getServiceImpl(IRestApiService.class));
   controller.setThreadPoolService(
       context.getServiceImpl(IThreadPoolService.class));
   controller.setSyncService(
       context.getServiceImpl(ISyncService.class));
   controller.setSwitchService(
	   context.getServiceImpl(IOFSwitchService.class));
   controller.init(context.getConfigParams(this));
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:21,代码来源:FloodlightProvider.java

示例7: getModuleDependencies

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public Collection<Class<? extends IFloodlightService>>
        getModuleDependencies() {
    Collection<Class<? extends IFloodlightService>> l =
            new ArrayList<Class<? extends IFloodlightService>>();
    l.add(IFloodlightProviderService.class);
    l.add(IRestApiService.class);
    l.add(IOFSwitchService.class);
    l.add(IDeviceService.class);
    l.add(IDebugCounterService.class);
    l.add(ITopologyService.class);
    l.add(IRoutingService.class);
    l.add(IStaticFlowEntryPusherService.class);

    return l;
}
 
开发者ID:zhenshengcai,项目名称:floodlight-hardware,代码行数:17,代码来源:LoadBalancer.java

示例8: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext context)
                                             throws FloodlightModuleException {
    floodlightProviderService = context.getServiceImpl(IFloodlightProviderService.class);
    restApiService = context.getServiceImpl(IRestApiService.class);
    debugCounterService = context.getServiceImpl(IDebugCounterService.class);
    deviceManagerService = context.getServiceImpl(IDeviceService.class);
    routingEngineService = context.getServiceImpl(IRoutingService.class);
    topologyService = context.getServiceImpl(ITopologyService.class);
    sfpService = context.getServiceImpl(IStaticFlowEntryPusherService.class);
    switchService = context.getServiceImpl(IOFSwitchService.class);

    vips = new HashMap<String, LBVip>();
    pools = new HashMap<String, LBPool>();
    members = new HashMap<String, LBMember>();
    vipIpToId = new HashMap<Integer, String>();
    vipIpToMac = new HashMap<Integer, MacAddress>();
    memberIpToId = new HashMap<Integer, String>();
}
 
开发者ID:zhenshengcai,项目名称:floodlight-hardware,代码行数:20,代码来源:LoadBalancer.java

示例9: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext context)
        throws FloodlightModuleException {
    linkDiscovery = context.getServiceImpl(ILinkDiscoveryService.class);
    threadPool = context.getServiceImpl(IThreadPoolService.class);
    floodlightProvider =
            context.getServiceImpl(IFloodlightProviderService.class);
    restApi = context.getServiceImpl(IRestApiService.class);
    debugCounters = context.getServiceImpl(IDebugCounterService.class);
    debugEvents = context.getServiceImpl(IDebugEventService.class);

    switchPorts = new HashMap<Long,Set<Short>>();
    switchPortLinks = new HashMap<NodePortTuple, Set<Link>>();
    directLinks = new HashMap<NodePortTuple, Set<Link>>();
    portBroadcastDomainLinks = new HashMap<NodePortTuple, Set<Link>>();
    tunnelPorts = new HashSet<NodePortTuple>();
    topologyAware = new ArrayList<ITopologyListener>();
    ldUpdates = new LinkedBlockingQueue<LDUpdate>();
    haListener = new HAListenerDelegate();
    registerTopologyDebugCounters();
    registerTopologyDebugEvents();
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:23,代码来源:TopologyManager.java

示例10: getModuleDependencies

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {
	Collection<Class<? extends IFloodlightService>> l = new ArrayList<Class<? extends IFloodlightService>>();
	l.add(IFloodlightProviderService.class);
	l.add(IRestApiService.class);
	l.add(IRoutingService.class);
	return l;
}
 
开发者ID:hexec,项目名称:floodlight-simple-multicast,代码行数:9,代码来源:Multicast.java

示例11: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@Override
public void init(FloodlightModuleContext context) throws FloodlightModuleException {
	floodlightProvider = context.getServiceImpl(IFloodlightProviderService.class);
	restApiService = context.getServiceImpl(IRestApiService.class);
	routingService = context.getServiceImpl(IRoutingService.class);
	// create an empty db
	groupDb = new MulticastDb();
	log.info("Startup MULTICAST module");
}
 
开发者ID:hexec,项目名称:floodlight-simple-multicast,代码行数:10,代码来源:Multicast.java

示例12: getModuleDependencies

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {
    Collection<Class<? extends IFloodlightService>> services = new ArrayList<>(3);
    services.add(IFloodlightProviderService.class);
    services.add(IOFSwitchService.class);
    services.add(IRestApiService.class);
    return services;
}
 
开发者ID:telstra,项目名称:open-kilda,代码行数:12,代码来源:SwitchManager.java

示例13: init

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void init(FloodlightModuleContext context) throws FloodlightModuleException {
    floodlightProvider = context.getServiceImpl(IFloodlightProviderService.class);
    ofSwitchService = context.getServiceImpl(IOFSwitchService.class);
    restApiService = context.getServiceImpl(IRestApiService.class);
    kafkaProducer = context.getServiceImpl(KafkaMessageProducer.class);
    // TODO: Ensure Kafka Topics are created..
}
 
开发者ID:telstra,项目名称:open-kilda,代码行数:12,代码来源:SwitchManager.java

示例14: getModuleDependencies

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
/**
 * IFloodlightModule Methods.
 */
@Override
public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {
    Collection<Class<? extends IFloodlightService>> services = new ArrayList<>(3);
    services.add(IFloodlightProviderService.class);
    services.add(IOFSwitchService.class);
    services.add(IRestApiService.class);
    return services;
}
 
开发者ID:telstra,项目名称:open-kilda,代码行数:12,代码来源:PathVerificationService.java

示例15: initServices

import net.floodlightcontroller.restserver.IRestApiService; //导入依赖的package包/类
@VisibleForTesting
void initServices(FloodlightModuleContext context)
{
    floodlightProvider = context.getServiceImpl(IFloodlightProviderService.class);
    switchService = context.getServiceImpl(IOFSwitchService.class);
    restApiService = context.getServiceImpl(IRestApiService.class);
}
 
开发者ID:telstra,项目名称:open-kilda,代码行数:8,代码来源:PathVerificationService.java


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