Merge dev/fluorine work across to master
[unimgr.git] / impl / src / main / java / org / opendaylight / unimgr / mef / nrp / common / ResourceActivator.java
index 2e8b3e26a4ce05a1542bd974c9a80edd81fb99ad..3a4ca06d42fba887be9cd778e0e4641b63f8739b 100644 (file)
@@ -8,11 +8,10 @@
 
 package org.opendaylight.unimgr.mef.nrp.common;
 
+import java.util.List;
 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
 import org.opendaylight.unimgr.mef.nrp.api.EndPoint;
 
-import java.util.List;
-
 /**
  * Device facing SPI for activating or deactivating a fragment of an NRP
  * Connectivity Service on a single device.
@@ -23,13 +22,19 @@ public interface ResourceActivator {
      * Activate connectivity betwee the provided endpoints.
      * @param endPoints list of endpoint to connect
      * @param serviceName generated service id
+     * @throws ResourceActivatorException activation problem
+     * @throws TransactionCommitFailedException transaction commit failed
      */
-    void activate(List<EndPoint> endPoints, String serviceName) throws  ResourceActivatorException, TransactionCommitFailedException;
+    void activate(List<EndPoint> endPoints, String serviceName)
+            throws  ResourceActivatorException, TransactionCommitFailedException;
 
     /**
      * Deactivate connectivity between the provided endpoints.
      * @param endPoints list of endpoint between which connection have to be deactivated
      * @param serviceName generated service id
+     * @throws ResourceActivatorException activation problem
+     * @throws TransactionCommitFailedException transaction commit failed
      */
-    void deactivate(List<EndPoint> endPoints, String serviceName) throws TransactionCommitFailedException, ResourceActivatorException;
+    void deactivate(List<EndPoint> endPoints, String serviceName)
+            throws TransactionCommitFailedException, ResourceActivatorException;
 }