Bulk-add copyright headers to java files
[controller.git] / opendaylight / md-sal / sal-connector-api / src / main / java / org / opendaylight / controller / sal / connector / api / RpcRouter.java
index 4807c4e2007279f73bc4f21d89975d0d3d283c52..f161644f6dccad55fdc7151dc6a898335745af97 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * 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.controller.sal.connector.api;
 
 import java.util.concurrent.Future;
@@ -11,11 +18,11 @@ import java.util.concurrent.Future;
  * @param <T> Rpc Type
  * @param <D> Data Type
  */
-public interface RpcRouter<C,R,T,D> {
+public interface RpcRouter<C,T,R,D> {
 
     
     
-    Future<RpcReply<D>> sendRpc(RpcRequest<C, R, T, D> input);
+    Future<RpcReply<D>> sendRpc(RpcRequest<C, T, R, D> input);
     
     
     /**
@@ -27,17 +34,17 @@ public interface RpcRouter<C,R,T,D> {
         * @param <T> Rpc Type
         * @param <D> Data Type
      */
-    public interface RpcRequest<C,R,T,D> {
+    public interface RpcRequest<C,T,R,D> {
 
-        RouteIdentifier<C,R,T> getRoutingInformation();
+        RouteIdentifier<C,T,R> getRoutingInformation();
         D getPayload();
     }
     
-    public interface RouteIdentifier<C,R,T> {
+    public interface RouteIdentifier<C,T,R> {
         
         C getContext(); // defines a routing table (e.g. NodeContext)
-        R getRoute(); // e.g. (node identity)
         T getType(); // rpc type
+        R getRoute(); // e.g. (node identity)
     }
     
     public interface RpcReply<D> {