blob: f1d4d732742d671264ee9e4f3faba10555789fa5 [file] [log] [blame]
ramvermaaf74a622018-07-31 18:25:39 +01001//
2// ============LICENSE_START=======================================================
3// Copyright (C) 2016-2018 Ericsson. All rights reserved.
4// ================================================================================
5// This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE
6// Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
7//
8// SPDX-License-Identifier: CC-BY-4.0
9// ============LICENSE_END=========================================================
10//
11// @author Sven van der Meer (sven.van.der.meer@ericsson.com)
12//
13
14=== A Websocket Configuration for the VPN Domain
15
16Create a new APEX configuration using the VPN policy model and configuring APEX as discussed above for Websockets.
17Copy the following configuration into `$APEX_HOME/examples/config/VPN/Ws2WsServerAvroContextJsonEvent.json` (for Windows use `%APEX_HOME%\examples\config\VPN\Ws2WsServerAvroContextJsonEvent.json`):
18
19[source%nowrap,json,numbered,subs="attributes+"]
20----
21{
22 "engineServiceParameters" : {
23 "name" : "VPNApexEngine",
24 "version" : "0.0.1",
25 "id" : 45,
26 "instanceCount" : 1,
27 "deploymentPort" : 12345,
28 "policyModelFileName" : "examples/models/VPN/VPNPolicyModelAvro.json",
29 "engineParameters" : {
30 "executorParameters" : {
31 "MVEL" : {
32 "parameterClassName" : "org.onap.policy.apex.plugins.executor.mvel.MVELExecutorParameters"
33 }
34 },
35 "contextParameters" : {
36 "parameterClassName" : "org.onap.policy.apex.context.parameters.ContextParameters",
37 "schemaParameters":{
38 "Avro":{
39 "parameterClassName" : "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
40 }
41 }
42 }
43 }
44 },
45 "producerCarrierTechnologyParameters" : {
46 "carrierTechnology" : "WEBSOCKET",
47 "parameterClassName" : "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
48 "parameters" : {
49 "wsClient" : false,
50 "port" : 42452
51 }
52 },
53 "producerEventProtocolParameters" : {
54 "eventProtocol" : "JSON"
55 },
56 "consumerCarrierTechnologyParameters" : {
57 "carrierTechnology" : "WEBSOCKET",
58 "parameterClassName" : "org.onap.policy.apex.plugins.event.carrier.websocket.WEBSOCKETCarrierTechnologyParameters",
59 "parameters" : {
60 "wsClient" : false,
61 "port" : 42450
62 }
63 },
64 "consumerEventProtocolParameters" : {
65 "eventProtocol" : "JSON"
66 }
67}
68----
69