Interface ConnectionListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
PacketViewer, YamcsLink

public interface ConnectionListener extends EventListener
A connection listener interface for clients connecting to Yamcs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called after a successful connection to Yamcs has been established.
    void
    Called right before the initial connection to Yamcs is being made.
    void
    Called when the initial connection to Yamcs has failed, e.g. the maximum number of retry attempts has exceeded.
    void
    Called when the connection to Yamcs is closed.
    default void
    log(String message)
    Used to log messages.
  • Method Details

    • connecting

      void connecting()
      Called right before the initial connection to Yamcs is being made.
    • connected

      void connected()
      Called after a successful connection to Yamcs has been established.
    • connectionFailed

      void connectionFailed(Throwable cause)
      Called when the initial connection to Yamcs has failed, e.g. the maximum number of retry attempts has exceeded.
      Parameters:
      cause - Optional cause of the connection failure, may be null.
    • disconnected

      void disconnected()
      Called when the connection to Yamcs is closed.
    • log

      default void log(String message)
      Used to log messages.
      Parameters:
      message - the messages to be logged