Moved all identical attributes and methods from COPSPdpConnection & COPSPepConnection...
[packetcable.git] / packetcable-driver / src / main / java / org / umu / cops / prpdp / COPSPdpAgent.java
index d71b8ec4d4b9702e51a73eae352dc85a0c532ace..eed74c90e3021818b75c1fc4974f0f63ed7037a3 100644 (file)
@@ -137,7 +137,7 @@ public class COPSPdpAgent extends Thread {
      * @throws COPSException
      * @throws COPSPdpException
      */
-    public void sync(final String pepID) throws COPSException, COPSPdpException {
+    public void sync(final String pepID) throws COPSException {
         COPSPdpConnection pdpConn = (COPSPdpConnection) _connectionMap.get(pepID);
         pdpConn.syncAllRequestState();
     }
@@ -262,7 +262,7 @@ public class COPSPdpAgent extends Thread {
 
         final COPSPdpConnection pdpConn = new COPSPdpConnection(_pepId, conn,  _process);
         pdpConn.setKaTimer(_kaTimer);
-        if (_acctTimer != 0) pdpConn.setAccTimer(_acctTimer);
+        if (_acctTimer != 0) pdpConn.setAcctTimer(_acctTimer);
         new Thread(pdpConn).start();
         _connectionMap.put(_pepId.getData().str(), pdpConn);
     }