use of org.apache.activemq.command.BrokerId in project activemq-artemis by apache.
the class OpenWireMessageConverter method setAMQMsgClusterPath.
private static void setAMQMsgClusterPath(final ActiveMQMessage amqMsg, final String clusterPath) {
String[] cluster = clusterPath.split(",");
BrokerId[] bids = new BrokerId[cluster.length];
for (int i = 0; i < bids.length; i++) {
bids[i] = new BrokerId(cluster[i]);
}
amqMsg.setCluster(bids);
}
use of org.apache.activemq.command.BrokerId in project activemq-artemis by apache.
the class BrokerIdTest method createObject.
@Override
public Object createObject() throws Exception {
BrokerId info = new BrokerId();
populateObject(info);
return info;
}
use of org.apache.activemq.command.BrokerId in project activemq-artemis by apache.
the class BrokerIdTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerId info = (BrokerId) object;
info.setValue("Value:1");
}
use of org.apache.activemq.command.BrokerId in project activemq-artemis by apache.
the class BrokerIdTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerId info = (BrokerId) object;
info.setValue("Value:1");
}
use of org.apache.activemq.command.BrokerId in project activemq-artemis by apache.
the class BrokerIdTest method createObject.
@Override
public Object createObject() throws Exception {
BrokerId info = new BrokerId();
populateObject(info);
return info;
}
Aggregations