All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.driver-jms.4.15.64.source-code.pulsar_jms.yaml Maven / Gradle / Ivy

Go to download

A JMS driver for nosqlbench. This provides the ability to inject synthetic data into a pulsar system via JMS 2.0 compatibile APIs. NOTE: this is JMS compatible driver from DataStax that allows using a Pulsar cluster as the potential JMS Destination

There is a newer version: 4.15.97
Show newest version
bindings:
  payload: NumberNameToString()  #AlphaNumericString(20)
  tenant: Mod(10000); Div(10L); ToString(); Prefix("tnt")
  namespace: Mod(10); Div(5L); ToString(); Prefix("ns")
  core_topic_name: Mod(5); ToString(); Prefix("t")

# document level parameters that apply to all Pulsar client types:
params:
  ### static only
  async_api: "true"

  ### Static only
  # Valid values: queue (point-to-point) or topic (pub-sub)
  jms_desitation_type: "topic"

  ### Static Only
  # NOTE: ONLY relevant when the JMS provider is Pulsar
  #pulsar_topic_uri: "persistent://{tenant}/{namespace}/{core_topic_name}"
  #pulsar_topic_uri: "persistent://public/default/pt100"
  #pulsar_topic_uri: "persistent://public/default/t0"
  pulsar_topic_uri: "persistent://public/default/pt100_10"
  #pulsar_topic_uri: "persistent://public/default/pt200_10"
  #pulsar_topic_uri: "persistent://public/default/pt300_10"
  #pulsar_topic_uri: "persistent://public/default/pt400_10"

blocks:
  - name: "producer-block"
    tags:
      phase: "jms_producer"
    statements:
      - name: "s1"
        optype: "msg_send"

        ### JMS PRODUCER message header
        ### https://docs.oracle.com/javaee/7/api/constant-values.html#javax.jms.DeliveryMode.NON_PERSISTENT
        # - static or dynamic
        # - Producer only
        # Valid values: non-persistent(1), or persistent(2) - default
        jms_producer_header_msg_delivery_mode: "2"
        # Valid values: 0~9 (4 as default)
        jms_producer_header_msg_priority: "4"
        # Valid values: non-negative long; default 0 (never expires)
        jms_producer_header_msg_ttl: "0"
        # Valid values: non-negative long; default 0 (no delay)
        jms_producer_header_msg_delivery_delay: "0"
        # Valid values: true/false; default false (message timestamp is enabled)
        jms_producer_header_disable_msg_timestamp: "false"
        # Valid values: true/false; default false (message ID is enabled)
        jms_producer_header_disable_msg_id: "false"

        ### JMS PRODUCER message properties
        # - static only
        # - Producer only
        # - In format: "key1=value1;key2=value2;..."
        jms_producer_msg_properties: "key1=value1;key2=value2"

        ### JMS PRODUCER message body
        msg_body: "{payload}"

  - name: "consumer-block"
    tags:
      phase: "jms_consumer"
    statements:
      - name: "s1"
        optype: "msg_read"

        ### JMS CONSUMER durable and shared
        jms_consumer_msg_durable: "true"
        jms_consumer_msg_shared: "true"

        ### JMS CONSUMER subscription name
        # - only relevant for durable consumer
        jms_consumer_subscription: "mysub"

        ### JMS CONSUMER subscription name
        # - only relevant for unshared consumer
        jms_consumer_nolocal: "false"

        ### JMS CONSUMER message read timeout
        # - unit: milliseconds
        # - 0 means call blocks indefinitely
        # - FIXME: 0 supposes to wait indefinitly; but
        #          it actually behaves like no wait at all
        jms_consumer_msg_read_timeout: "10000"

        ### JMS CONSUMER message selector
        # - empty string means no message selector
        # - https://docs.oracle.com/cd/E19798-01/821-1841/bncer/index.html
        jms_consumer_msg_read_selector: ""




© 2015 - 2025 Weber Informatics LLC | Privacy Policy