* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.openflowplugin.impl.services.sal;
import com.google.common.util.concurrent.ListenableFuture;
import org.opendaylight.openflowplugin.extension.api.core.extension.ExtensionConverterProvider;
import org.opendaylight.openflowplugin.impl.services.multilayer.MultiLayerExperimenterMultipartService;
import org.opendaylight.openflowplugin.impl.services.singlelayer.SingleLayerExperimenterMultipartService;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.experimenter.mp.message.service.rev151020.SalExperimenterMpMessageService;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.experimenter.mp.message.service.rev151020.SendExperimenterMpRequest;
import org.opendaylight.yang.gen.v1.urn.opendaylight.experimenter.mp.message.service.rev151020.SendExperimenterMpRequestInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.experimenter.mp.message.service.rev151020.SendExperimenterMpRequestOutput;
import org.opendaylight.yangtools.yang.common.RpcResult;
-public class SalExperimenterMpMessageServiceImpl implements SalExperimenterMpMessageService {
+public final class SendExperimenterMpRequestImpl implements SendExperimenterMpRequest {
private final MultiLayerExperimenterMultipartService multiLayerService;
private final SingleLayerExperimenterMultipartService singleLayerService;
- public SalExperimenterMpMessageServiceImpl(final RequestContextStack requestContextStack,
+ public SendExperimenterMpRequestImpl(final RequestContextStack requestContextStack,
final DeviceContext deviceContext,
final ExtensionConverterProvider extensionConverterProvider) {
- this.singleLayerService = new SingleLayerExperimenterMultipartService(requestContextStack, deviceContext,
+ singleLayerService = new SingleLayerExperimenterMultipartService(requestContextStack, deviceContext,
extensionConverterProvider);
- this.multiLayerService = new MultiLayerExperimenterMultipartService(requestContextStack, deviceContext,
+ multiLayerService = new MultiLayerExperimenterMultipartService(requestContextStack, deviceContext,
extensionConverterProvider);
}
@Override
- public ListenableFuture<RpcResult<SendExperimenterMpRequestOutput>>
- sendExperimenterMpRequest(SendExperimenterMpRequestInput input) {
+ public ListenableFuture<RpcResult<SendExperimenterMpRequestOutput>> invoke(
+ final SendExperimenterMpRequestInput input) {
return singleLayerService.canUseSingleLayerSerialization()
? singleLayerService.handleAndReply(input)
: multiLayerService.handleAndReply(input);