File: CosNotifyFilter_MappingFilter.3

package info (click to toggle)
erlang-manpages 1%3A12.b.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,188 kB
  • ctags: 2
  • sloc: makefile: 68; perl: 30; sh: 15
file content (282 lines) | stat: -rw-r--r-- 7,179 bytes parent folder | download
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
.TH CosNotifyFilter_MappingFilter 3 "cosNotification  1.1.7" "Ericsson AB" "ERLANG MODULE DEFINITION"
.SH MODULE
CosNotifyFilter_MappingFilter \- This module implements the OMG CosNotifyFilter::MappingFilter interface\&.
.SH DESCRIPTION
.LP
The main purpose of this module is to match events against associated constraints and return the value for the first constraint that returns true for the given event\&. If all constraints return false the default value will be returned\&.
.LP
To get access to the record definitions for the structures use: 
.br
\fI-include_lib("cosNotification/include/*\&.hrl")\&.\fR

.SH EXPORTS
.LP
.B
_get_constraint_grammar(MappingFilter) -> Grammar
.br
.RS
.TP
Types
MappingFilter = #objref
.br
Grammar = string()
.br
.RE
.RS
.LP
This operation returns which type of Grammar the MappingFilter uses\&. Currently, only \fI"EXTENDED_TCL"\fR is supported\&.
.RE
.LP
.B
_get_value_type(MappingFilter) -> CORBA::TypeCode
.br
.RS
.TP
Types
MappingFilter = #objref
.br
.RE
.RS
.LP
This readonly attribute maintains the \fICORBA::TypeCode\fR of the default value associated with the target object\&.
.RE
.LP
.B
_get_default_value(MappingFilter) -> #any
.br
.RS
.TP
Types
MappingFilter = #objref
.br
.RE
.RS
.LP
This readonly attribute maintains the \fI#any{}\fR default value associated with the target object\&.
.RE
.LP
.B
add_mapping_constraints(MappingFilter, MappingConstraintPairSeq) -> Reply
.br
.RS
.TP
Types
MappingFilter = #objref
.br
MappingConstraintPairSeq = [MappingConstraintPair]
.br
MappingConstraintPair = #\&'CosNotifyFilter_MappingConstraintPair\&'{constraint_expression, result_to_set}
.br
constraint_expression = #\&'CosNotifyFilter_ConstraintExp\&'{event_types, constraint_expr}
.br
event_types = #\&'CosNotification_EventTypeSeq\&'{}
.br
constraint_expr = string()
.br
result_to_set = #any
.br
Reply = MappingConstraintInfoSeq | {\&'EXCEPTION\&', #\&'CosNotifyFilter_InvalidConstraint\&'{constr}} | {\&'EXCEPTION\&', #\&'CosNotifyFilter_InvalidValue\&'{constr, value}}
.br
constr = ConstraintExp
.br
ConstraintExp = #\&'CosNotifyFilter_ConstraintExp\&'{event_types, constraint_expr}
.br
event_types = #\&'CosNotification_EventTypeSeq\&'{}
.br
constraint_expr = string()
.br
MappingConstraintInfoSeq = [MappingConstraintInfo]
.br
MappingConstraintInfo = #\&'CosNotifyFilter_MappingConstraintInfo\&'{constraint_expression, constraint_id, value}
.br
constraint_expression = ConstraintExp
.br
constraint_id = long()
.br
value = #any
.br
.RE
.RS
.LP
This operation add new mapping constraints, which will be used when trying to override Quality of Service settings defined in the given event\&. If a constraint return true the associated value will be returned, otherwise the default value\&.
.RE
.LP
.B
modify_constraints(MappingFilter, ConstraintIDSeq, MappingConstraintInfoSeq) -> Reply
.br
.RS
.TP
Types
MappingFilter = #objref
.br
ConstraintIDSeq = [ConstraintID]
.br
ConstraintID = long()
.br
MappingConstraintInfoSeq = [MappingConstraintInfo]
.br
MappingConstraintInfo = #\&'CosNotifyFilter_MappingConstraintInfo\&'{constraint_expression, constraint_id, value}
.br
constraint_expression = ConstraintExp
.br
constraint_id = long()
.br
value = #any
.br
ConstraintInfoSeq = [ConstraintInfo]
.br
ConstraintInfo = #\&'CosNotifyFilter_ConstraintInfo\&'{constraint_expression, constraint_id}
.br
constraint_expression = ConstraintExp
.br
constraint_id = long()
.br
Reply = ok | {\&'EXCEPTION\&', #\&'CosNotifyFilter_InvalidConstraint\&'{constr}} | {\&'EXCEPTION\&', #\&'CosNotifyFilter_ConstraintNotFound\&'{id}} | {\&'EXCEPTION\&', #\&'CosNotifyFilter_InvalidValue\&'{constr, value}}
.br
constr = ConstraintExp
.br
id = long()
.br
value = #any
.br
ConstraintExp = #\&'CosNotifyFilter_ConstraintExp\&'{event_types, constraint_expr}
.br
event_types = #\&'CosNotification_EventTypeSeq\&'{}
.br
constraint_expr = string()
.br
.RE
.RS
.LP
The \fIConstraintIDSeq\fR supplied should relate to constraints the caller wishes to remove\&. If any of the supplied Id\&'s are not found an exception will be raised\&. This operation also accepts a sequence of \fIMappingConstraintInfo\fR which will be added\&. If the target object cannot modify the constraints as requested an exception is raised describing which constraint, and why, could not be updated\&.
.RE
.LP
.B
get_mapping_constraints(MappingFilter, ConstraintIDSeq) -> Reply
.br
.RS
.TP
Types
MappingFilter = #objref
.br
ConstraintIDSeq = [ConstraintID]
.br
ConstraintID = long()
.br
Reply = MappingConstraintInfoSeq | {\&'EXCEPTION\&', #\&'CosNotifyFilter_ConstraintNotFound\&'{id}}
.br
MappingConstraintInfoSeq = [MappingConstraintInfo]
.br
MappingConstraintInfo = #\&'CosNotifyFilter_MappingConstraintInfo\&'{constraint_expression, constraint_id, value}
.br
constraint_expression = ConstraintExp
.br
ConstraintExp = #\&'CosNotifyFilter_ConstraintExp\&'{event_types, constraint_expr}
.br
event_types = #\&'CosNotification_EventTypeSeq\&'{}
.br
constraint_expr = string()
.br
constraint_id = id = long()
.br
value = #any
.br
.RE
.RS
.LP
When adding a new constraint a unique Id is returned, which is accepted as input for this operation\&. The associated constraint is returned, but if no such Id exists an exception is raised\&. 
.RE
.LP
.B
get_all_mapping_constraints(MappingFilter) -> MappingConstraintInfoSeq
.br
.RS
.TP
Types
MappingFilter = #objref
.br
MappingConstraintInfoSeq = [MappingConstraintInfo]
.br
MappingConstraintInfo = #\&'CosNotifyFilter_MappingConstraintInfo\&'{constraint_expression, constraint_id, value}
.br
constraint_expression = ConstraintExp
.br
ConstraintExp = #\&'CosNotifyFilter_ConstraintExp\&'{event_types, constraint_expr}
.br
event_types = #\&'CosNotification_EventTypeSeq\&'{}
.br
constraint_expr = string()
.br
constraint_id = long()
.br
value = #any
.br
.RE
.RS
.LP
This operation returns a sequence of all unique Id\&'s associated with the target object\&. If no constraint have been added the sequence will be empty\&.
.RE
.LP
.B
remove_all_mapping_constraints(MappingFilter) -> ok
.br
.RS
.TP
Types
MappingFilter = #objref
.br
.RE
.RS
.LP
This operation removes all constraints associated with the target object\&.
.RE
.LP
.B
destroy(MappingFilter) -> ok
.br
.RS
.TP
Types
MappingFilter = #objref
.br
.RE
.RS
.LP
This operation terminates the target object\&. Remember to remove this Filter from the objects it have been associated with\&.
.RE
.LP
.B
match(MappingFilter, Event) -> Reply
.br
.RS
.TP
Types
MappingFilter = #objref
.br
Event = #any
.br
Reply = {boolean(), #any} | {\&'EXCEPTION\&', #\&'CosNotifyFilter_UnsupportedFilterableData\&'{}}
.br
.RE
.RS
.LP
This operation evaluates \fIAny\fR events with the Filter\&'s constraints, and returns the value to use\&. The value is the default value if all constraints returns false and the value associated with the first constraint returning true\&.
.RE
.LP
.B
match_structured(MappingFilter, Event) -> Reply
.br
.RS
.TP
Types
MappingFilter = #objref
.br
Event = #\&'CosNotification_StructuredEvent\&'{}
.br
Reply = {boolean(), #any} | {\&'EXCEPTION\&', #\&'CosNotifyFilter_UnsupportedFilterableData\&'{}}
.br
.RE
.RS
.LP
Similar to \fImatch/2\fR but accepts a structured event as input\&.
.RE