本文整理汇总了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();
}
示例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();
}
示例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;
}
示例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>();
}
示例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();
}
示例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));
}
示例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;
}
示例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>();
}
示例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();
}
示例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;
}
示例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");
}
示例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;
}
示例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..
}
示例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;
}
示例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);
}