Class TestingSessionListener

java.lang.Object
org.opendaylight.protocol.pcep.testtool.TestingSessionListener
All Implemented Interfaces:
PCEPSessionListener

public class TestingSessionListener extends Object implements PCEPSessionListener
  • Constructor Details

    • TestingSessionListener

      public TestingSessionListener()
  • Method Details

    • onMessage

      public void onMessage(PCEPSession session, Message message)
      Description copied from interface: PCEPSessionListener
      Fired when a normal protocol message is received.
      Specified by:
      onMessage in interface PCEPSessionListener
      message - Protocol message
    • onSessionUp

      public void onSessionUp(PCEPSession session)
      Description copied from interface: PCEPSessionListener
      Fired when the session was established successfully.
      Specified by:
      onSessionUp in interface PCEPSessionListener
      Parameters:
      session - Peer address families which we accepted
    • onSessionDown

      public void onSessionDown(PCEPSession session, Exception exception)
      Description copied from interface: PCEPSessionListener
      Fired when the session went down because of an IO error. Implementation should take care of closing underlying session.
      Specified by:
      onSessionDown in interface PCEPSessionListener
      Parameters:
      session - that went down
      exception - Exception that was thrown as the cause of session being down
    • onSessionTerminated

      public void onSessionTerminated(PCEPSession session, PCEPTerminationReason cause)
      Description copied from interface: PCEPSessionListener
      Fired when the session is terminated locally. The session has already been closed and transitioned to IDLE state. Any outstanding queued messages were not sent. The user should not attempt to make any use of the session.
      Specified by:
      onSessionTerminated in interface PCEPSessionListener
      cause - the cause why the session went down