Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-2295

DCM Java interface user get status of a datajob from DMI

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Oslo Release
    • None
    • NCMP

      Request:

      Method: GET

      Path: /dmi/v1/dataJob/{requestId}/dataProducerJob/{dataProducerJobId}/status

       

      How:

      1. Create a Java interface (DataJobStatusService) (requsetId, dataProducerJobId) that returns a string
      2. Send an sync request to the dmi (url defined above)
      3. Implement the DMI Stub version
      4. Create DmiSubJobStatusRequestHandler
      5. Check status code and then return the extracted the message
      6. In case of an error thrown the DmiRequestException

      Out of scope:

      1. error handling
      2. Treat the Enum as a string

      A/C:

      1. Agree with the external team about the actual Java interface definition (params, java doc etc...) (Csaba Kocsis must confirm the interface)
      2. Demo to the team (with the stub)
      3. Create a new acceptance test at src/test/groovy/org/onap/cps/integration/functional/datajobs

       

      Name Description Location Type Mandatory
      dataProducerId ID of the producer registered by DMI for the alernateIDs in the operations in this request. Query String Y
      requestId Identifier for the overall Datajob Path String Y
      dataProducerJobId Identifier of the job created by the data producer. Path String Y

       

            leventecsanyi Levente Csanyi
            egernug Gerard Nugent
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: