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

Compare with Current View Page History

« Previous Version 3 Next »

Description/Scope

There are 3 datastore related endpoints exists on the proxy controller.

/v1/ch/{cm-handle}/data/ds/ncmp-datastore:passthrough-operational:
 $ref: 'ncmp.yml#/getResourceDataForPassthroughOperational'

 /v1/ch/{cm-handle}/data/ds/ncmp-datastores:operational:
 $ref: 'ncmp.yml#/getResourceDataOperational'

 /v1/ch/{cm-handle}/data/ds/ncmp-datastore:passthrough-running:
 $ref: 'ncmp.yml#/resourceDataForPassthroughRunning'

It would be better to have just one handling all the cases like /v1/ch/{cm-handle}/data/ds/{ncmp-datastore-name}

where can be set to operational or passthrough-operational or passthrough-running


Open questions


If want to have full backward compatibility than we will have : in the URL


Proposed solutions


  1. Use just a switch to execute the appropriate handler
  2. Use Factory pattern alone
  3. Use Builder pattern to make a the config for the Factory (Thanks Andras for the idea)
  4. Make handler Builder (Solution will be proposed by Andras)


Advantages and Disadvantages of Proposed Solutions

Advantages and Disadvantages of the simple switch

AdvantagesDisadvantages






Advantages and Disadvantages of the Factory Pattern

AdvantagesDisadvantages






Advantages and Disadvantages of the Builder Pattern

AdvantagesDisadvantages














  • No labels