Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

Developed (Increments)


DescriptionNotes
Subscription Schemas 

Ref: cps-ncmp-events/src/main/resources/schemas/cmsubscription

  • DME to NCMP Subscription Request
    • cm-subscription-ncmp-in-event-schema-1.0.0.json
  • NCMP to DMI-Plugin Subscription Request
    • cm-subscription-dmi-in-event-schema-1.0.0.json
  • DMI-Plugin to NCMP Subscription Response
    • cm-subscription-dmi-out-event-schema-1.0.0.json
  • NCMP to DME Subscription Response
    • cm-subscription-ncmp-out-event-schema-1.0.0.json

See schema definitions in Impl. Proposal for Merging of Subscriptions ( Positive Scenarios )


Subscription YANG model

Ref: cps-ncmp-service/src/main/resources/models/cm-data-subscriptions@2023-11-13.yang


See Use of Subscription model

cmSubscriptionEventCache

Hazelcast map to hold the incoming subscription create request

  • For comparison of in-database active subscriptions
  • For tracking of subscription request to DMI (Accepted, Rejected, Pending)


KeyValue



 Unique Subscription Id

KeyValue
Dmi-Plugin NameCachedCmSubscription
Dmi-Plugin NameCachedCmSubscription
CmSubscriptionCompositeObject
CmSubscriptionCompositeObject
    CmSubscriptionPredicate list
     - targetFilter : (List of cmHandles - Subscription request incoming cmhandles grouped using target dmiPlugin)
     - Status ( Accepted , Rejected or Pending ) - initially Pending
     - scopeFilter :
            Datastore ( passthrough-operational and passthrough-running )
            List of xpaths
Tracking Subscriptions in memory
NCMP Startup

Ref: CmSubscriptionModelLoader

  1. Onboarding of Subscription model
  2. Initialises parent node for the model
  3. Initialises datastores 

See Use of Subscription model

Client To NCMP

Ref: CmSubscriptionNcmpInEventConsumer

  • Read incoming subscription message


Ref: CmSubscriptionValidationService

  • Method for validating datastore type
NCMP to DMI

Ref: CmSubscriptionService

  • Method to fetch ongoing subscription in database via datastore Type, cmHandle ID, xpath

Backlog

  • No labels