@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);
    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);
    }
  }