@Test public void testCreateRemoteForwarder() { final ServiceFfNameBuilder serviceFfNameBuilder = new ServiceFfNameBuilder(); serviceFfNameBuilder.setName(SERVICE_FUNCTION_FORWARDER) .setKey(new ServiceFfNameKey(SERVICE_FUNCTION_FORWARDER)); final ServiceFfName testForwarder = serviceFfNameBuilder.build(); final ServiceFunctionForwarderBuilder serviceFunctionForwarderBuilder = new ServiceFunctionForwarderBuilder(); serviceFunctionForwarderBuilder.setName(new SffName(SERVICE_FUNCTION_FORWARDER)) .setKey(new ServiceFunctionForwarderKey(new SffName(SERVICE_FUNCTION_FORWARDER))); final ServiceFfName result = ServiceChainingUtil.createRemoteForwarder(serviceFunctionForwarderBuilder.build()); assertEquals(testForwarder, result); }
static ServiceFfName createRemoteForwarder(ServiceFunctionForwarder firstHopSff) { final ServiceFfNameBuilder serviceFfNameBuilder = new ServiceFfNameBuilder(); serviceFfNameBuilder.setName(firstHopSff.getName().getValue()); return serviceFfNameBuilder.build(); }
ServiceChainingUtil { static ServiceFfName createRemoteForwarder(ServiceFunctionForwarder firstHopSff) { final ServiceFfNameBuilder serviceFfNameBuilder = new ServiceFfNameBuilder(); serviceFfNameBuilder.setName(firstHopSff.getName().getValue()); return serviceFfNameBuilder.build(); } }
ServiceChainingUtil { static ServiceFfName createRemoteForwarder(ServiceFunctionForwarder firstHopSff) { final ServiceFfNameBuilder serviceFfNameBuilder = new ServiceFfNameBuilder(); serviceFfNameBuilder.setName(firstHopSff.getName().getValue()); return serviceFfNameBuilder.build(); } private  ServiceChainingUtil(); }
ServiceChainingUtil { static ServiceFfName createRemoteForwarder(ServiceFunctionForwarder firstHopSff) { final ServiceFfNameBuilder serviceFfNameBuilder = new ServiceFfNameBuilder(); serviceFfNameBuilder.setName(firstHopSff.getName().getValue()); return serviceFfNameBuilder.build(); } private  ServiceChainingUtil(); static boolean resolveRemoteSfcComponents(final RenderedServicePath renderedServicePath,
                                                      final PolicyConfigurationContext context); static RenderedServicePath resolveReversedRenderedServicePath(final ServiceFunctionPath sfp, final TenantId tenantId,
                                                                          final DataBroker dataBroker, final Sgt sourceSgt,
                                                                          final Sgt destinationSgt, final PolicyConfigurationContext context); @VisibleForTesting static void setTimeout(long value); }
ServiceChainingUtil { static ServiceFfName createRemoteForwarder(ServiceFunctionForwarder firstHopSff) { final ServiceFfNameBuilder serviceFfNameBuilder = new ServiceFfNameBuilder(); serviceFfNameBuilder.setName(firstHopSff.getName().getValue()); return serviceFfNameBuilder.build(); } private  ServiceChainingUtil(); static boolean resolveRemoteSfcComponents(final RenderedServicePath renderedServicePath,
                                                      final PolicyConfigurationContext context); static RenderedServicePath resolveReversedRenderedServicePath(final ServiceFunctionPath sfp, final TenantId tenantId,
                                                                          final DataBroker dataBroker, final Sgt sourceSgt,
                                                                          final Sgt destinationSgt, final PolicyConfigurationContext context); @VisibleForTesting static void setTimeout(long value);  }