Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The data is represented as key-value pair gets written into a file within container above. The MS should parse the configuration and apply within MS as required.

For new JVM code you are advised to use cbs-client from DCAE SDK instead of manually implementing the code above. For python clients -  onap_dcae_cbs_docker_client module is available under Global PyPI.

DMAAP binding


The dmaap topic stream are identified in compenent_spec as "subscribe" and "publish" streams. Each topic should be identified by the component developer using unique config_key.  When the configuration gets pushed into the container by controller, the topic configuration is pushed under below structure.

...

Sample DR configuration structure

...


{

 "streams_subscribes": {
  "DCAE_GUEST_OS": {
   "type": "data_router",
   "dmaap_info": {
    "username": "xyz",
    "password": "abc",
    "location": "mtn23",
    "delivery_url": "https://dr.global:8666/DCAE_SAM_GUEST_OS",
    "subscriber_id": "811"
   }
  },
  "DCAE_RAW_DATA": {
   "type": "data_router",
   "dmaap_info": {
    "username": "abc",
    "password": "xyz",
    "location": "mtn23",
    "delivery_url": "https://dr.global:8666/DCAE_CEILOMETER_RAW_DATA",
    "subscriber_id": "812"
   }
  },
  "sec-measurement-output": {
   "type": "message_router",
   "aaf_password": "aaf_password",
   "dmaap_info": {
    "topic_url": "https://mr.hostname:3905/events/com.att.dcae.dmaap.SEC-MEASUREMENT-OUTPUT-v1",
    "client_role": "com.att.dcae.member",
    "location": "mtn23",
    "client_id": "1111"
   },
   "aaf_username": "aaf_username"

  }

 },

 "streams_publishes": {

  "DCAE_VOIP_PM_DATA": {
   "type": "data_router",
   "dmaap_info": {
    "username": "abc",
    "log_url": "https://dcae-drps/feedlog/206",
    "publish_url": "https://dcae-drps/publish/206",
    "location": "mtn23",
    "password": "xyz",
    "publisher_id": "206.518hu"

   }
  },

  "DCAE_GUEST_OS_O": {
   "type": "data_router",
   "dmaap_info": {
    "username": "axyz",
    "log_url": "https://dcae-drps/feedlog/203",
    "publish_url": "https://dcae-drps/publish/203",
    "location": "mtn23",
    "password": "abc",

    "publisher_id": "203.2od8s"
   }
  },

  "DCAE_PM_DATA": {
   "type": "data_router",
   "dmaap_info": {
    "username": "xyz",
    "log_url": "https://dcae-drps/feedlog/493",
    "publish_url": "https://dcae-drps/publish/493",
    "location": "mtn23bdce2",
    "password": "abc",
    "publisher_id": "493.eacqs"
   }
  }
 }

}

...