diff options
author | 2018-07-30 19:13:47 +0100 | |
---|---|---|
committer | 2018-07-30 19:40:15 +0100 | |
commit | 9e318f20f2e64970bf3c2e3a5532c516231a6f8a (patch) | |
tree | fe2bb55099bc12c1b5315bad1db0553375a9895b /examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/config/SampleDomain/RESTServerJsonEvent.json | |
parent | df417ab0b34912e153532373fd2c0af33e4b2179 (diff) |
Adding examples-servlet module to apex-pdp
Adding examples-servlet module to demonstrate the capability that
apex-pdp can be simply started as a servlet deployed in any application
server.
Change-Id: I5c9e323f1468cc14c6277c0037029679d00cd751
Issue-ID: POLICY-861
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Diffstat (limited to 'examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/config/SampleDomain/RESTServerJsonEvent.json')
-rw-r--r-- | examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/config/SampleDomain/RESTServerJsonEvent.json | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/config/SampleDomain/RESTServerJsonEvent.json b/examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/config/SampleDomain/RESTServerJsonEvent.json new file mode 100644 index 000000000..bb652e99b --- /dev/null +++ b/examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/config/SampleDomain/RESTServerJsonEvent.json @@ -0,0 +1,71 @@ +{ + "engineServiceParameters":{ + "name" : "MyApexEngine", + "version" : "0.0.1", + "id" : 45, + "instanceCount" : 4, + "deploymentPort" : 12561, + "policyModelFileName" : "models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters" : { + "executorParameters" : { + "JAVASCRIPT" : { + "parameterClassName" : "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters" : { + "carrierTechnology" : "RESTSERVER", + "parameterClassName" : "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters" + }, + "eventProtocolParameters":{ + "eventProtocol" : "JSON" + }, + "synchronousMode" : true, + "synchronousPeer" : "FirstProducer", + "synchronousTimeout" : 500 + + }, + "SecondConsumer": { + "carrierTechnologyParameters" : { + "carrierTechnology" : "RESTSERVER", + "parameterClassName" : "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters" + }, + "eventProtocolParameters":{ + "eventProtocol" : "JSON" + }, + "synchronousMode" : true, + "synchronousPeer" : "SecondProducer", + "synchronousTimeout" : 500 + + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters":{ + "carrierTechnology" : "RESTSERVER", + "parameterClassName" : "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters" + }, + "eventProtocolParameters":{ + "eventProtocol" : "JSON" + }, + "synchronousMode" : true, + "synchronousPeer" : "FirstConsumer", + "synchronousTimeout" : 500 + }, + "SecondProducer": { + "carrierTechnologyParameters":{ + "carrierTechnology" : "RESTSERVER", + "parameterClassName" : "org.onap.policy.apex.plugins.event.carrier.restserver.RESTServerCarrierTechnologyParameters" + }, + "eventProtocolParameters":{ + "eventProtocol" : "JSON" + }, + "synchronousMode" : true, + "synchronousPeer" : "SecondConsumer", + "synchronousTimeout" : 500 + } + } +} |