aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugins-event/plugins-event-carrier/src/site-docs/adoc/fragments/ct-eventrequestor-io.adoc
blob: d8756bfcbbd1b871d49f91b61e488c11db84a91e (plain)
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
//
// ============LICENSE_START=======================================================
//  Copyright (C) 2016-2018 Ericsson. All rights reserved.
// ================================================================================
// This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE
// Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
// 
// SPDX-License-Identifier: CC-BY-4.0
// ============LICENSE_END=========================================================
//
// @author Sven van der Meer (sven.van.der.meer@ericsson.com)
//

== Event Requestor IO

Event Requestor IO does not require a specific plugin, it is supported be default.
It should only be used with the APEX event protocol.

=== Event Requestor Input

APEX will take events from APEX.

[source%nowrap,json]
----
"carrierTechnologyParameters" : {
  "carrierTechnology": "EVENT_REQUESTOR" // <1>
}
----
<1> set event requestor input


=== Event Requestor Output

APEX will write events to APEX.

[source%nowrap,json]
----
"carrierTechnologyParameters" : {
  "carrierTechnology": "EVENT_REQUESTOR" // <1>
}
----

=== Peering Event Requestors

When using event requestors, they need to be peered.
This means an event requestor output needs to be peered (associated) with an event requestor input.
The following example shows the use of an event requestor with the APEX event protocol and the peering of output and input.

[source%nowrap,json]
----
"eventInputParameters": {
  "EventRequestorConsumer": {
    "carrierTechnologyParameters": {
      "carrierTechnology": "EVENT_REQUESTOR" // <1>
    },
    "eventProtocolParameters": {
      "eventProtocol": "APEX" // <2>
    },
    "eventNameFilter": "InputEvent", // <3>
    "requestorMode": true, // <4>
    "requestorPeer": "EventRequestorProducer", // <5>
    "requestorTimeout": 500 // <6>
  }
},
"eventOutputParameters": {
  "EventRequestorProducer": {
    "carrierTechnologyParameters": {
      "carrierTechnology": "EVENT_REQUESTOR" <7>
    },
    "eventProtocolParameters": {
      "eventProtocol": "APEX" <8>
    },
    "eventNameFilter": "EventListEvent", // <9>
    "requestorMode": true, // <10>
    "requestorPeer": "EventRequestorConsumer", // <11>
    "requestorTimeout": 500 // <12>
  }
}
----

<1> event requestor on a consumer
<2> with APEX event protocol
<3> optional filter (best to use a filter to prevent unwanted events on the consumer side)
<4> activate requestor mode
<5> the peer to the output (must match the output carrier)
<6> an optional timeout in milliseconds
<7> event requestor on a producer
<8> with APEX event protocol
<9> optional filter (best to use a filter to prevent unwanted events on the consumer side)
<10> activate requestor mode
<11> the peer to the output (must match the input carrier)
<12> an optional timeout in milliseconds