Bug-2081: PCEP statistics
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPSession.java
index bb15c92b02627bd7b375db2f618d1d611c81e112..1d5efe2548e027a79c602fe03832c8291d3f9805 100644 (file)
@@ -8,10 +8,9 @@
 package org.opendaylight.protocol.pcep;
 
 import io.netty.util.concurrent.Future;
-
 import java.net.InetAddress;
-
 import org.opendaylight.protocol.framework.ProtocolSession;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.stats.rev141006.PcepSessionState;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.open.object.open.Tlvs;
 
@@ -21,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.typ
  * manually. If the session is up, it has to redirect messages to/from user. Handles also malformed messages and unknown
  * requests.
  */
-public interface PCEPSession extends ProtocolSession<Message> {
+public interface PCEPSession extends ProtocolSession<Message>, PcepSessionState {
 
     /**
      * Sends message from user to PCE/PCC. If the user sends an Open Message, the session returns an error (open message
@@ -38,4 +37,6 @@ public interface PCEPSession extends ProtocolSession<Message> {
     Tlvs getRemoteTlvs();
 
     InetAddress getRemoteAddress();
+
+    void resetStats();
 }