@Test public void testOnFlowClassifierCreated() { final String name = "FlowClassifier"; final String description = "FlowClassifier"; final String ethType = "IPv4"; final String protocol = "udp"; final int minSrcPortRange = 1024; final int maxSrcPortRange = 5000; final int minDstPortRange = 1024; final int maxDstPortRange = 5000; final FlowClassifierId flowClassifierId = FlowClassifierId.of("71111111-fc23-aeb6-f44b-56dc5e2fb3ae"); final TenantId tenantId = TenantId.tenantId("8"); final IpPrefix srcIpPrefix = IpPrefix.valueOf("0.0.0.0/0"); final IpPrefix dstIpPrefix = IpPrefix.valueOf("100.100.100.100/0"); final VirtualPortId virtualSrcPort = VirtualPortId.portId("100"); final VirtualPortId virtualDstPort = VirtualPortId.portId("200"); DefaultFlowClassifier.Builder flowClassifierBuilder = new DefaultFlowClassifier.Builder(); FlowClassifier flowClassifier = null; SfcService sfcService = new SfcManager(); flowClassifier = flowClassifierBuilder.setFlowClassifierId(flowClassifierId).setTenantId(tenantId) .setName(name).setDescription(description).setEtherType(ethType).setProtocol(protocol) .setMinSrcPortRange(minSrcPortRange).setMaxSrcPortRange(maxSrcPortRange) .setMinDstPortRange(minDstPortRange).setMaxDstPortRange(maxDstPortRange).setSrcIpPrefix(srcIpPrefix) .setDstIpPrefix(dstIpPrefix).setSrcPort(virtualSrcPort).setDstPort(virtualDstPort).build(); sfcService.onFlowClassifierCreated(flowClassifier); }
@Override public void onFlowClassifierCreated(FlowClassifier flowClassifier) { log.debug("onFlowClassifierCreated"); }
SfcManager implements SfcService { @Override public void onFlowClassifierCreated(FlowClassifier flowClassifier) { log.debug("onFlowClassifierCreated"); } }
SfcManager implements SfcService { @Override public void onFlowClassifierCreated(FlowClassifier flowClassifier) { log.debug("onFlowClassifierCreated"); }  }
SfcManager implements SfcService { @Override public void onFlowClassifierCreated(FlowClassifier flowClassifier) { log.debug("onFlowClassifierCreated"); }  @Activate void activate(); @Deactivate void deactivate(); @Override void onPortPairCreated(PortPair portPair); @Override void onPortPairDeleted(PortPair portPair); @Override void onPortPairGroupCreated(PortPairGroup portPairGroup); @Override void onPortPairGroupDeleted(PortPairGroup portPairGroup); @Override void onFlowClassifierCreated(FlowClassifier flowClassifier); @Override void onFlowClassifierDeleted(FlowClassifier flowClassifier); @Override void onPortChainCreated(PortChain portChain); @Override void onPortChainDeleted(PortChain portChain); }
SfcManager implements SfcService { @Override public void onFlowClassifierCreated(FlowClassifier flowClassifier) { log.debug("onFlowClassifierCreated"); }  @Activate void activate(); @Deactivate void deactivate(); @Override void onPortPairCreated(PortPair portPair); @Override void onPortPairDeleted(PortPair portPair); @Override void onPortPairGroupCreated(PortPairGroup portPairGroup); @Override void onPortPairGroupDeleted(PortPairGroup portPairGroup); @Override void onFlowClassifierCreated(FlowClassifier flowClassifier); @Override void onFlowClassifierDeleted(FlowClassifier flowClassifier); @Override void onPortChainCreated(PortChain portChain); @Override void onPortChainDeleted(PortChain portChain);  }