Mechanical code cleanup (sal-connector-api)
[controller.git] / opendaylight / md-sal / sal-connector-api / src / main / java / org / opendaylight / controller / sal / connector / api / BindingAwareZeroMqRpcRouter.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.sal.connector.api;
9
10 import java.util.concurrent.Future;
11
12 public class BindingAwareZeroMqRpcRouter implements BindingAwareRpcRouter {
13
14     BindingAwareRpcRouter mdSalRouter;
15
16     public BindingAwareRpcRouter getMdSalRouter() {
17         return mdSalRouter;
18     }
19
20
21     public void setMdSalRouter(BindingAwareRpcRouter mdSalRouter) {
22         this.mdSalRouter = mdSalRouter;
23     }
24
25
26     @Override
27     public Future<RpcReply<byte[]>> sendRpc(RpcRequest<String, String, String, byte[]> input) {
28         // Write message down to the wire
29         return null;
30     }
31
32     // Receiver part - invoked when request is received and deserialized
33     private Future<RpcReply<byte[]>> receivedRequest(RpcRequest<String, String, String, byte[]> input) {
34
35         return mdSalRouter.sendRpc(input);
36     }
37
38 }