Add "source" to PAP-PDP messages 09/122109/4
authorJim Hahn <jrh3@att.com>
Tue, 22 Jun 2021 16:01:37 +0000 (12:01 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 23 Jun 2021 15:18:31 +0000 (11:18 -0400)
commitf2078f5fd455c02f615b33700e1b545e0055e2fe
tree89e01ab7b4885a4fef62b23d21f12647ee49b593
parent33c54226a0463e8ed234177bc9b894dd6797ab74
Add "source" to PAP-PDP messages

Added a "source" field to the PdpStateChange and PdpUpdate messages so
that PAP can record a unique name in the message, for logging purposes.

In a separate review, planning to add a method in policy-common for
creating the unique name.  Once that has been created, it will be used
by PAP, to populate the "source" field, and all PDPs, to populate the
"name" field in the PdpStatus messages.

Issue-ID: POLICY-3409
Change-Id: I86c97702abe62a5672720330df50b7b106187661
Signed-off-by: Jim Hahn <jrh3@att.com>
models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpStateChange.java
models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpUpdate.java
models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/PdpStateChangeTest.java
models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/PdpUpdateTest.java