Search in sources :

Example 16 with BrokerId

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);
}
Also used : BrokerId(org.apache.activemq.command.BrokerId) SimpleString(org.apache.activemq.artemis.api.core.SimpleString)

Example 17 with BrokerId

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;
}
Also used : BrokerId(org.apache.activemq.command.BrokerId)

Example 18 with BrokerId

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");
}
Also used : BrokerId(org.apache.activemq.command.BrokerId)

Example 19 with BrokerId

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");
}
Also used : BrokerId(org.apache.activemq.command.BrokerId)

Example 20 with BrokerId

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;
}
Also used : BrokerId(org.apache.activemq.command.BrokerId)

Aggregations

BrokerId (org.apache.activemq.command.BrokerId)24 SimpleString (org.apache.activemq.artemis.api.core.SimpleString)3 BrokerInfo (org.apache.activemq.command.BrokerInfo)3 ActiveMQBuffer (org.apache.activemq.artemis.api.core.ActiveMQBuffer)1 ICoreMessage (org.apache.activemq.artemis.api.core.ICoreMessage)1 CoreMessage (org.apache.activemq.artemis.core.message.impl.CoreMessage)1 BrokerService (org.apache.activemq.broker.BrokerService)1 ActiveMQDestination (org.apache.activemq.command.ActiveMQDestination)1 ActiveMQMessage (org.apache.activemq.command.ActiveMQMessage)1 ActiveMQTopic (org.apache.activemq.command.ActiveMQTopic)1 ConnectionId (org.apache.activemq.command.ConnectionId)1 ConsumerId (org.apache.activemq.command.ConsumerId)1 ConsumerInfo (org.apache.activemq.command.ConsumerInfo)1 DataStructure (org.apache.activemq.command.DataStructure)1 MessageDispatch (org.apache.activemq.command.MessageDispatch)1 MessageId (org.apache.activemq.command.MessageId)1 ProducerId (org.apache.activemq.command.ProducerId)1 RemoveInfo (org.apache.activemq.command.RemoveInfo)1 SessionId (org.apache.activemq.command.SessionId)1 Transport (org.apache.activemq.transport.Transport)1