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
|
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">
<chapter>
<header>
<copyright>
<year>2002</year><year>2013</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</legalnotice>
<title>Quality Of Service and Admin Properties</title>
<prepared></prepared>
<docno></docno>
<date>2000-05-29</date>
<rev></rev>
<file>ch_QoS.xml</file>
</header>
<section>
<title>Quality Of Service and Admin Properties</title>
<p>This chapter explains the allowed properties it is possible to set for this
application. </p>
<section>
<title>Quality Of Service</title>
<p>The cosEventDomain application supports the following QoS settings:</p>
<table>
<row>
<cell align="center" valign="middle"><em>QoS</em></cell>
<cell align="center" valign="middle"><em>Range</em></cell>
<cell align="center" valign="middle"><em>Default</em></cell>
</row>
<row>
<cell align="left" valign="middle">CycleDetection</cell>
<cell align="left" valign="middle">AuthorizeCycles/ForbidCycles</cell>
<cell align="left" valign="middle">ForbidCycles</cell>
</row>
<row>
<cell align="left" valign="middle">DiamondDetection</cell>
<cell align="left" valign="middle">AuthorizeDiamonds/ForbidDiamonds</cell>
<cell align="left" valign="middle">ForbidDiamonds</cell>
</row>
<tcaption>Supported QoS settings</tcaption>
</table>
<br></br><br></br><br></br><br></br> <p><em>Comments on the table 'Supported QoS Settings':</em></p>
<taglist>
<tag><em>CycleDetection</em></tag>
<item>If a cycle is created, the user <em>must</em> be aware of the fact
that unless they set timeout on events, events that are not filtered
will loop endlessly through the topology.</item>
<tag><em>DiamondDetection</em></tag>
<item>A Diamond in this context, means that the same
event may reach a point in the graph by more than one route
(i.e. transitive). Hence, it is possible that multiple copies
are delivered.</item>
</taglist>
</section>
<section>
<title>Setting Quality Of Service</title>
<p>Assume we have a Consumer Admin object which we want to change
the current Quality of Service. Typical usage:</p>
<code type="none"><![CDATA[
QoS =
[#'CosNotification_Property'
{name='CosEventDomainAdmin':'DiamondDetection'(),
value=any:create(orber_tc:short(),
'CosEventDomainAdmin':'AuthorizeDiamonds'())},
#'CosNotification_Property'
{name='CosEventDomainAdmin':'CycleDetection'(),
value=any:create(orber_tc:short(),
'CosEventDomainAdmin':'ForbidCycles'())}],
'CosEventDomainAdmin_EventDomain':set_qos(ED, QoS),
]]></code>
<p>If it is not possible to set the requested QoS the <c><![CDATA[UnsupportedQoS]]></c>
exception is raised, which includes a sequence of <c><![CDATA[PropertyError]]></c>'s
describing which QoS, possible range and why is not allowed. The error
codes are:</p>
<list type="bulleted">
<item>UNSUPPORTED_PROPERTY - QoS not supported for this type of target object.</item>
<item>UNAVAILABLE_PROPERTY - due to current QoS settings the given property
is not allowed.</item>
<item>UNSUPPORTED_VALUE - property value out of range; valid range is returned.</item>
<item>UNAVAILABLE_VALUE - due to current QoS settings the given value is
not allowed; valid range is returned.</item>
<item>BAD_PROPERTY - unrecognized property.</item>
<item>BAD_TYPE - type of supplied property is incorrect.</item>
<item>BAD_VALUE - illegal value.</item>
</list>
<p>The CosEventDomainAdmin_EventDomain interface also supports an operation
called <c><![CDATA[validate_qos/2]]></c>. The purpose of this operations is to check
if a QoS setting is supported by the target object and if so, the operation
returns additional properties which could be optionally added as well.</p>
</section>
<section>
<title>Admin Properties</title>
<p>The OMG specification do not contain any definitions of Admin Properties.
Hence, the cosEventDomain application currently does not support any Admin
Properties.</p>
</section>
</section>
</chapter>
|