public interface ConnectionListener extends EventListener
| Modifier and Type | Method and Description |
|---|---|
void |
connected(String url)
Called after a successful connection to the yamcs server has been established.
|
void |
connecting(String url)
Called right before the initial connection to yamcs is being made.
|
void |
connectionFailed(String url,
YamcsException exception)
Called when the initial connection to the yamcs server has failed, e.g. the maximum number of
retry attempts has exceeded.
|
void |
disconnected()
Called when the connection to the yamcs server is closed.
|
void |
log(String message)
Used to log messages.
|
void connecting(String url)
url - the url of the yamcs servervoid connected(String url)
Note: when using a re-connecting YamcsConnector, this method is also called after a successful re-connection attempt.
url - the url of the yamcs servervoid connectionFailed(String url, YamcsException exception)
url - the url of the yamcs serverexception - Optional cause of the connection failure, may be null.void disconnected()
void log(String message)
message - the messages to be loggedCopyright © 2019 Space Applications Services. All rights reserved.