CommonService exposes more methods and parameters 49/17549/1
authorMartin Bobak <mbobak@cisco.com>
Wed, 1 Apr 2015 14:17:07 +0000 (16:17 +0200)
committerMartin Bobak <mbobak@cisco.com>
Wed, 1 Apr 2015 14:17:07 +0000 (16:17 +0200)
Change-Id: I4aefe586b295b762547f3f754f541f533fac23a0
Signed-off-by: Martin Bobak <mbobak@cisco.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/CommonService.java

index d945dfc63459c25a14d8f8855a20d0c2654b47ac..6ff0b33d632cecac9aa283fa4f73d6026b655593 100644 (file)
@@ -32,11 +32,11 @@ public abstract class CommonService {
     protected static final BigInteger PRIMARY_CONNECTION = new BigInteger("0");
 
     // protected OFRpcTaskContext rpcTaskContext;
-    protected short version;
-    protected BigInteger datapathId;
-    protected RequestContextStack requestContextStack;
-    protected DeviceContext deviceContext;
-    private ConnectionAdapter primaryConnectionAdapter;
+    public short version;
+    public BigInteger datapathId;
+    public RequestContextStack requestContextStack;
+    public DeviceContext deviceContext;
+    public ConnectionAdapter primaryConnectionAdapter;
 
     public CommonService() {
     }
@@ -74,8 +74,8 @@ public abstract class CommonService {
         return primaryConnectionAdapter;
     }
 
-    <T extends DataObject, F> Future<RpcResult<T>> handleServiceCall(final BigInteger connectionID,
-                                                                     final Function<DataCrate<T>, Future<RpcResult<F>>> function) {
+    public <T extends DataObject, F> Future<RpcResult<T>> handleServiceCall(final BigInteger connectionID,
+                                                                            final Function<DataCrate<T>, Future<RpcResult<F>>> function) {
         LOG.debug("Calling the FlowMod RPC method on MessageDispatchService");
 
         final RequestContext<T> requestContext = requestContextStack.createRequestContext();