Search in sources :

Example 1 with ConnectionId

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

the class ConnectionIdTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConnectionId info = (ConnectionId) object;
    info.setValue("Value:1");
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId)

Example 2 with ConnectionId

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

the class ConnectionIdTest method createObject.

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

Example 3 with ConnectionId

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

the class ConnectionIdTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConnectionId info = (ConnectionId) object;
    info.setValue("Value:1");
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId)

Example 4 with ConnectionId

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

the class ConnectionIdTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConnectionId info = (ConnectionId) object;
    info.setValue("Value:1");
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId)

Example 5 with ConnectionId

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

the class FanoutTransportBrokerTest method createConnectionInfo.

protected ConnectionInfo createConnectionInfo() throws Exception {
    ConnectionInfo info = new ConnectionInfo();
    info.setConnectionId(new ConnectionId("connection:" + (++idGenerator)));
    info.setClientId(info.getConnectionId().getValue());
    return info;
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId) ConnectionInfo(org.apache.activemq.command.ConnectionInfo)

Aggregations

ConnectionId (org.apache.activemq.command.ConnectionId)30 ConnectionInfo (org.apache.activemq.command.ConnectionInfo)7 RemoveInfo (org.apache.activemq.command.RemoveInfo)3 SessionId (org.apache.activemq.command.SessionId)3 ActiveMQTopic (org.apache.activemq.command.ActiveMQTopic)2 ConsumerId (org.apache.activemq.command.ConsumerId)2 MessageAck (org.apache.activemq.command.MessageAck)2 Test (org.junit.Test)2 IOException (java.io.IOException)1 IllegalStateException (javax.jms.IllegalStateException)1 SimpleString (org.apache.activemq.artemis.api.core.SimpleString)1 AMQConsumer (org.apache.activemq.artemis.core.protocol.openwire.amq.AMQConsumer)1 AMQSession (org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession)1 BrokerService (org.apache.activemq.broker.BrokerService)1 ConnectionContext (org.apache.activemq.broker.ConnectionContext)1 ActiveMQMessage (org.apache.activemq.command.ActiveMQMessage)1 ActiveMQTempQueue (org.apache.activemq.command.ActiveMQTempQueue)1 BrokerId (org.apache.activemq.command.BrokerId)1 BrokerInfo (org.apache.activemq.command.BrokerInfo)1 ConsumerInfo (org.apache.activemq.command.ConsumerInfo)1