@Override
  protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ProducerAck info = (ProducerAck) object;

    info.setProducerId(createProducerId("ProducerId:1"));
    info.setSize(1);
  }
Ejemplo n.º 2
0
  @Override
  protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    RemoveInfo info = (RemoveInfo) object;

    info.setObjectId(createDataStructure("ObjectId:1"));
    info.setLastDeliveredSequenceId(1);
  }
  @Override
  protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object;

    info.setConnectionId(createConnectionId("ConnectionId:1"));
    info.setSubcriptionName("SubcriptionName:2");
    info.setClientId("ClientId:3");
  }
  @Override
  protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    Message info = (Message) object;

    info.setProducerId(createProducerId("ProducerId:1"));
    info.setDestination(createActiveMQDestination("Destination:2"));
    info.setTransactionId(createTransactionId("TransactionId:3"));
    info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
    info.setMessageId(createMessageId("MessageId:5"));
    info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
    info.setGroupID("GroupID:7");
    info.setGroupSequence(1);
    info.setCorrelationId("CorrelationId:8");
    info.setPersistent(true);
    info.setExpiration(1);
    info.setPriority((byte) 1);
    info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
    info.setTimestamp(2);
    info.setType("Type:10");
    {
      byte data[] = "Content:11".getBytes();
      info.setContent(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
    }
    {
      byte data[] = "MarshalledProperties:12".getBytes();
      info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
    }
    info.setDataStructure(createDataStructure("DataStructure:13"));
    info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
    info.setCompressed(false);
    info.setRedeliveryCounter(2);
    {
      BrokerId value[] = new BrokerId[2];
      for (int i = 0; i < 2; i++) {
        value[i] = createBrokerId("BrokerPath:15");
      }
      info.setBrokerPath(value);
    }
    info.setArrival(3);
    info.setUserID("UserID:16");
    info.setRecievedByDFBridge(true);
    info.setDroppable(false);
    {
      BrokerId value[] = new BrokerId[2];
      for (int i = 0; i < 2; i++) {
        value[i] = createBrokerId("Cluster:17");
      }
      info.setCluster(value);
    }
    info.setBrokerInTime(4);
    info.setBrokerOutTime(5);
  }
  @Override
  protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    Message info = (Message) object;

    info.setProducerId(createProducerId("ProducerId:1"));
    info.setDestination(createActiveMQDestination("Destination:2"));
    info.setTransactionId(createTransactionId("TransactionId:3"));
    info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
    info.setMessageId(createMessageId("MessageId:5"));
    info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
    info.setGroupID("GroupID:7");
    info.setGroupSequence(1);
    info.setCorrelationId("CorrelationId:8");
    info.setPersistent(true);
    info.setExpiration(1);
    info.setPriority((byte) 1);
    info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
    info.setTimestamp(2);
    info.setType("Type:10");
    {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      DataOutputStream dataOut = new DataOutputStream(baos);
      MarshallingSupport.writeUTF8(dataOut, "Content:11");
      dataOut.close();
      info.setContent(baos.toByteSequence());
    }
    {
      Map map = new HashMap();
      map.put("MarshalledProperties", 12);
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      DataOutputStream os = new DataOutputStream(baos);
      MarshallingSupport.marshalPrimitiveMap(map, os);
      os.close();
      info.setMarshalledProperties(baos.toByteSequence());
    }
    info.setDataStructure(createDataStructure("DataStructure:13"));
    info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
    info.setCompressed(false);
    info.setRedeliveryCounter(2);
    {
      BrokerId value[] = new BrokerId[2];
      for (int i = 0; i < 2; i++) {
        value[i] = createBrokerId("BrokerPath:15");
      }
      info.setBrokerPath(value);
    }
    info.setArrival(3);
    info.setUserID("UserID:16");
    info.setRecievedByDFBridge(true);
    info.setDroppable(false);
  }
  @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);
  }
  @Override
  protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConsumerInfo info = (ConsumerInfo) object;

    info.setConsumerId(createConsumerId("ConsumerId:1"));
    info.setBrowser(true);
    info.setDestination(createActiveMQDestination("Destination:2"));
    info.setPrefetchSize(1);
    info.setMaximumPendingMessageLimit(2);
    info.setDispatchAsync(false);
    info.setSelector("Selector:3");
    info.setSubscriptionName("SubscriptionName:4");
    info.setNoLocal(true);
    info.setExclusive(false);
    info.setRetroactive(true);
    info.setPriority((byte) 1);
    {
      BrokerId value[] = new BrokerId[2];
      for (int i = 0; i < 2; i++) {
        value[i] = createBrokerId("BrokerPath:5");
      }
      info.setBrokerPath(value);
    }
    info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6"));
    info.setNetworkSubscription(false);
    info.setOptimizedAcknowledge(true);
    info.setNoRangeAcks(false);
    {
      ConsumerId value[] = new ConsumerId[2];
      for (int i = 0; i < 2; i++) {
        value[i] = createConsumerId("NetworkConsumerPath:7");
      }
      info.setNetworkConsumerPath(value);
    }
  }