1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
{
"tosca_definitions_version": "tosca_simple_yaml_1_1_0",
"topology_template": {
"policies": [
{
"usecases": {
"type": "onap.policies.native.drools.Controller",
"type_version": "1.0.0",
"name": "usecases",
"version": "1.0.0",
"metadata": {
"policy-id": "usecases"
},
"properties": {
"controllerName": "usecases",
"sourceTopics": [
{
"topicName": "DCAE_TOPIC",
"events": [
{
"eventClass": "org.onap.policy.controlloop.CanonicalOnset",
"eventFilter": "[?($.closedLoopEventStatus == 'ONSET')]",
"customSerialization": {
"customSerializerClass": "org.onap.policy.controlloop.util.Serialization",
"jsonParser": "gson"
}
},
{
"eventClass": "org.onap.policy.controlloop.CanonicalAbated",
"eventFilter": "[?($.closedLoopEventStatus == 'ABATED')]",
"customSerialization": {
"customSerializerClass": "org.onap.policy.controlloop.util.Serialization",
"jsonParser": "gson"
}
}
]
},
{
"topicName": "APPC-CL",
"events": [
{
"eventClass": "org.onap.policy.appc.Response",
"eventFilter": "[?($.CommonHeader && $.Status)]",
"customSerialization": {
"customSerializerClass": "org.onap.policy.appc.util.Serialization",
"jsonParser": "gsonPretty"
}
}
]
},
{
"topicName": "APPC-LCM-WRITE",
"events": [
{
"eventClass": "org.onap.policy.appclcm.AppcLcmMessageWrapper",
"eventFilter": "[?($.type == 'response')]",
"customSerialization": {
"customSerializerClass": "org.onap.policy.appclcm.util.Serialization",
"jsonParser": "gson"
}
}
]
},
{
"topicName": "SDNR-CL-RSP",
"events": [
{
"eventClass": "org.onap.policy.sdnr.PciResponseWrapper",
"eventFilter": "[?($.type == 'response')]",
"customSerialization": {
"customSerializerClass": "org.onap.policy.sdnr.util.Serialization",
"jsonParser": "gson"
}
}
]
}
],
"sinkTopics": [
{
"topicName": "APPC-CL",
"events": [
{
"eventClass": "org.onap.policy.appc.Request",
"customSerialization": {
"customSerializerClass": "org.onap.policy.appc.util.Serialization",
"jsonParser": "gsonPretty"
}
}
]
},
{
"topicName": "APPC-LCM-READ",
"events": [
{
"eventClass": "org.onap.policy.appclcm.AppcLcmMessageWrapper",
"customSerialization": {
"customSerializerClass": "org.onap.policy.appclcm.util.Serialization",
"jsonParser": "gson"
}
}
]
},
{
"topicName": "POLICY-CL-MGT",
"events": [
{
"eventClass": "org.onap.policy.controlloop.VirtualControlLoopNotification",
"customSerialization": {
"customSerializerClass": "org.onap.policy.controlloop.util.Serialization",
"jsonParser": "gsonPretty"
}
}
]
},
{
"topicName": "DCAE_CL_RSP",
"events": [
{
"eventClass": "org.onap.policy.controlloop.ControlLoopResponse",
"customSerialization": {
"customSerializerClass": "org.onap.policy.controlloop.util.Serialization",
"jsonParser": "gsonPretty"
}
}
]
}
],
"customConfig": {
"notes" : "test",
"persistence.type" : "auto"
}
}
}
}
]
}
}
|