Search in sources :

Example 6 with BrokerInfo

use of org.apache.activemq.command.BrokerInfo in project activemq-artemis by apache.

the class BrokerInfoTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    BrokerInfo info = (BrokerInfo) object;
    info.setBrokerId(createBrokerId("BrokerId:1"));
    info.setBrokerURL("BrokerURL:2");
    {
        BrokerInfo[] value = new BrokerInfo[0];
        for (int i = 0; i < 0; i++) {
            value[i] = createBrokerInfo("PeerBrokerInfos:3");
        }
        info.setPeerBrokerInfos(value);
    }
    info.setBrokerName("BrokerName:4");
    info.setSlaveBroker(true);
    info.setMasterBroker(false);
    info.setFaultTolerantConfiguration(true);
    info.setDuplexConnection(false);
    info.setNetworkConnection(true);
    info.setConnectionId(1);
    info.setBrokerUploadUrl("BrokerUploadUrl:5");
    info.setNetworkProperties("NetworkProperties:6");
}
Also used : BrokerInfo(org.apache.activemq.command.BrokerInfo)

Example 7 with BrokerInfo

use of org.apache.activemq.command.BrokerInfo in project activemq-artemis by apache.

the class BrokerInfoData method createObject.

@Override
protected Object createObject() {
    BrokerInfo rc = new BrokerInfo();
    rc.setResponseRequired(false);
    rc.setBrokerName("localhost");
    rc.setBrokerURL("tcp://localhost:61616");
    rc.setBrokerId(new BrokerId("ID:1289012830123"));
    rc.setCommandId((short) 12);
    rc.setResponseRequired(false);
    return rc;
}
Also used : BrokerId(org.apache.activemq.command.BrokerId) BrokerInfo(org.apache.activemq.command.BrokerInfo)

Example 8 with BrokerInfo

use of org.apache.activemq.command.BrokerInfo in project activemq-artemis by apache.

the class BrokerInfoTest method createObject.

@Override
public Object createObject() throws Exception {
    BrokerInfo info = new BrokerInfo();
    populateObject(info);
    return info;
}
Also used : BrokerInfo(org.apache.activemq.command.BrokerInfo)

Example 9 with BrokerInfo

use of org.apache.activemq.command.BrokerInfo in project activemq-artemis by apache.

the class BrokerInfoTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    BrokerInfo info = (BrokerInfo) object;
    info.setBrokerId(createBrokerId("BrokerId:1"));
    info.setBrokerURL("BrokerURL:2");
    {
        BrokerInfo[] value = new BrokerInfo[0];
        for (int i = 0; i < 0; i++) {
            value[i] = createBrokerInfo("PeerBrokerInfos:3");
        }
        info.setPeerBrokerInfos(value);
    }
    info.setBrokerName("BrokerName:4");
    info.setSlaveBroker(true);
    info.setMasterBroker(false);
    info.setFaultTolerantConfiguration(true);
}
Also used : BrokerInfo(org.apache.activemq.command.BrokerInfo)

Example 10 with BrokerInfo

use of org.apache.activemq.command.BrokerInfo in project activemq-artemis by apache.

the class BrokerInfoTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    BrokerInfo info = (BrokerInfo) object;
    info.setBrokerId(createBrokerId("BrokerId:1"));
    info.setBrokerURL("BrokerURL:2");
    {
        BrokerInfo[] value = new BrokerInfo[0];
        for (int i = 0; i < 0; i++) {
            value[i] = createBrokerInfo("PeerBrokerInfos:3");
        }
        info.setPeerBrokerInfos(value);
    }
    info.setBrokerName("BrokerName:4");
    info.setSlaveBroker(true);
    info.setMasterBroker(false);
    info.setFaultTolerantConfiguration(true);
    info.setDuplexConnection(false);
    info.setNetworkConnection(true);
    info.setConnectionId(1);
    info.setBrokerUploadUrl("BrokerUploadUrl:5");
    info.setNetworkProperties("NetworkProperties:6");
}
Also used : BrokerInfo(org.apache.activemq.command.BrokerInfo)

Aggregations

BrokerInfo (org.apache.activemq.command.BrokerInfo)27 ActiveMQMessage (org.apache.activemq.command.ActiveMQMessage)3 BrokerId (org.apache.activemq.command.BrokerId)3 AtomicLong (java.util.concurrent.atomic.AtomicLong)2 Connection (javax.jms.Connection)2 MessageConsumer (javax.jms.MessageConsumer)2 Session (javax.jms.Session)2 ActiveMQConnectionFactory (org.apache.activemq.ActiveMQConnectionFactory)2 BrokerService (org.apache.activemq.broker.BrokerService)2 TransportListener (org.apache.activemq.transport.TransportListener)2 IOException (java.io.IOException)1 StubConnection (org.apache.activemq.broker.StubConnection)1 RegionBroker (org.apache.activemq.broker.region.RegionBroker)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 MessageDispatch (org.apache.activemq.command.MessageDispatch)1 RemoveInfo (org.apache.activemq.command.RemoveInfo)1 SessionId (org.apache.activemq.command.SessionId)1