Package org.yamcs.client
Interface ConnectionListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
PacketViewer
,YamcsLink
A connection listener interface for clients connecting to Yamcs.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called after a successful connection to Yamcs has been established.void
Called right before the initial connection to Yamcs is being made.void
connectionFailed
(Throwable cause) 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
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
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
Used to log messages.- Parameters:
message
- the messages to be logged
-