use of org.apache.activemq.command.ConnectionControl in project activemq-artemis by apache.
the class OpenWireProtocolManager method updateClientClusterInfo.
private void updateClientClusterInfo() {
synchronized (members) {
members.clear();
members.addAll(topologyMap.values());
}
for (OpenWireConnection c : this.connections) {
ConnectionControl control = newConnectionControl();
try {
c.updateClient(control);
} catch (Exception e) {
ActiveMQServerLogger.LOGGER.warn(e.getMessage(), e);
c.sendException(e);
}
}
}
use of org.apache.activemq.command.ConnectionControl in project activemq-artemis by apache.
the class ConnectionControlTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionControl info = (ConnectionControl) object;
info.setClose(true);
info.setExit(false);
info.setFaultTolerant(true);
info.setResume(false);
info.setSuspend(true);
info.setConnectedBrokers("ConnectedBrokers:1");
info.setReconnectTo("ReconnectTo:2");
info.setRebalanceConnection(false);
info.setToken("Token:3".getBytes());
}
use of org.apache.activemq.command.ConnectionControl in project activemq-artemis by apache.
the class ConnectionControlTest method createObject.
@Override
public Object createObject() throws Exception {
ConnectionControl info = new ConnectionControl();
populateObject(info);
return info;
}
use of org.apache.activemq.command.ConnectionControl in project activemq-artemis by apache.
the class ConnectionControlTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionControl info = (ConnectionControl) object;
info.setClose(true);
info.setExit(false);
info.setFaultTolerant(true);
info.setResume(false);
info.setSuspend(true);
}
use of org.apache.activemq.command.ConnectionControl in project activemq-artemis by apache.
the class ConnectionControlTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionControl info = (ConnectionControl) object;
info.setClose(true);
info.setExit(false);
info.setFaultTolerant(true);
info.setResume(false);
info.setSuspend(true);
info.setConnectedBrokers("ConnectedBrokers:1");
info.setReconnectTo("ReconnectTo:2");
info.setRebalanceConnection(false);
}
Aggregations