public class YamcsConnector extends Object implements org.apache.activemq.artemis.api.core.client.SessionFailureListener
| Modifier and Type | Field and Description |
|---|---|
protected org.yamcs.api.YamcsConnectionProperties |
connectionParams |
protected YamcsSession |
yamcsSession |
| Constructor and Description |
|---|
YamcsConnector() |
YamcsConnector(boolean retry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(ConnectionListener connectionListener) |
void |
beforeReconnect(org.apache.activemq.artemis.api.core.ActiveMQException e) |
void |
close() |
Future<String> |
connect(org.yamcs.api.YamcsConnectionProperties cp) |
void |
connectionFailed(org.apache.activemq.artemis.api.core.ActiveMQException e,
boolean failedOver) |
void |
connectionFailed(org.apache.activemq.artemis.api.core.ActiveMQException e,
boolean failedOver,
String scaleDownTargetNodeID) |
void |
disconnect() |
org.yamcs.api.YamcsConnectionProperties |
getConnectionParams() |
ExecutorService |
getExecutor() |
int |
getMaxAttempts() |
YamcsSession |
getSession() |
String |
getUrl() |
List<String> |
getYamcsInstances() |
boolean |
isConnected() |
boolean |
isConnecting() |
void |
setMaxAttempts(int maxAttempts) |
protected YamcsSession yamcsSession
protected org.yamcs.api.YamcsConnectionProperties connectionParams
public YamcsConnector()
public YamcsConnector(boolean retry)
public int getMaxAttempts()
public void setMaxAttempts(int maxAttempts)
public void addConnectionListener(ConnectionListener connectionListener)
public Future<String> connect(org.yamcs.api.YamcsConnectionProperties cp)
public void disconnect()
public String getUrl()
public boolean isConnected()
public boolean isConnecting()
public void connectionFailed(org.apache.activemq.artemis.api.core.ActiveMQException e,
boolean failedOver,
String scaleDownTargetNodeID)
connectionFailed in interface org.apache.activemq.artemis.core.remoting.FailureListenerpublic void connectionFailed(org.apache.activemq.artemis.api.core.ActiveMQException e,
boolean failedOver)
connectionFailed in interface org.apache.activemq.artemis.core.remoting.FailureListenerpublic void beforeReconnect(org.apache.activemq.artemis.api.core.ActiveMQException e)
beforeReconnect in interface org.apache.activemq.artemis.api.core.client.SessionFailureListenerpublic YamcsSession getSession()
public org.yamcs.api.YamcsConnectionProperties getConnectionParams()
public void close()
throws org.apache.activemq.artemis.api.core.ActiveMQException
org.apache.activemq.artemis.api.core.ActiveMQExceptionpublic ExecutorService getExecutor()
Copyright © 2019 Space Applications Services. All rights reserved.