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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This document was generated using DocBuilder-0.9.8.4 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Quality Of Service and Admin Properties</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<script type="text/javascript" src="../../../../doc/erlresolvelinks.js"></script>
<style type="text/css">
<!--
body { font-family: Verdana, Arial, Helvetica, sans-serif }
span.bold_code { font-family: courier;font-weight: bold}
span.code { font-family: courier;font-weight: normal}
.note, .warning {
border: solid black 1px;
margin: 1em 3em;
}
.note .label {
background: #30d42a;
color: white;
font-weight: bold;
padding: 5px 10px;
}
.note .content {
background: #eafeea;
color: black;
line-height: 120%;
font-size: 90%;
padding: 5px 10px;
}
.warning .label {
background: #C00;
color: white;
font-weight: bold;
padding: 5px 10px;
}
.warning .content {
background: #FFF0F0;
color: black;
line-height: 120%;
font-size: 90%;
padding: 5px 10px;
}
.example { background-color:#eeeeff }
pre { font-family: courier; font-weight: normal }
.REFBODY { margin-left: 13mm }
.REFTYPES { margin-left: 8mm }
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF00FF" alink="#FF0000">
<center>
<a href="http://www.ericsson.com/technology/opensource/erlang"><img border="0" alt="[Ericsson AB]" src="min_head.gif"/></a>
</center><a name="3"><!-- Empty --></a>
<h2>3 Quality Of Service and Admin Properties</h2>
<a name="3.1"><!-- Empty --></a>
<h3>3.1 Quality Of Service and Admin Properties</h3>
<p>This chapter explains the allowed properties it is possible to set for this
application.
</p><a name="3.1.1"><!-- Empty --></a>
<h4>3.1.1 Quality Of Service</h4>
<p>The cosEventDomain application supports the following QoS settings:
</p>
<center>
<table cellspacing="0" cellpadding="2" border="1">
<caption align="bottom"><em>Supported QoS settings</em></caption>
<tr>
<td align="center" valign="middle">
<strong>QoS</strong>
</td>
<td align="center" valign="middle">
<strong>Range</strong>
</td>
<td align="center" valign="middle">
<strong>Default</strong>
</td>
</tr>
<tr>
<td align="left" valign="middle">
CycleDetection
</td>
<td align="left" valign="middle">
AuthorizeCycles/ForbidCycles
</td>
<td align="left" valign="middle">
ForbidCycles
</td>
</tr>
<tr>
<td align="left" valign="middle">
DiamondDetection
</td>
<td align="left" valign="middle">
AuthorizeDiamonds/ForbidDiamonds
</td>
<td align="left" valign="middle">
ForbidDiamonds
</td>
</tr>
</table>
</center>
<br />
<br />
<br />
<br />
<p><strong>Comments on the table 'Supported QoS Settings':</strong>
</p>
<dl>
<dt>
<strong>CycleDetection</strong>
</dt>
<dd>
If a cycle is created, the user <strong>must</strong> be aware of the fact
that unless they set timeout on events, events that are not filtered
will loop endlessly through the topology.
</dd>
<dt>
<strong>DiamondDetection</strong>
</dt>
<dd>
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.
</dd>
</dl>
<a name="3.1.2"><!-- Empty --></a>
<h4>3.1.2 Setting Quality Of Service</h4>
<p>Assume we have a Consumer Admin object which we want to change
the current Quality of Service. Typical usage:
</p>
<div class="example"><pre>
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),
</pre></div>
<p>If it is not possible to set the requested QoS the <span class="code">UnsupportedQoS</span>
exception is raised, which includes a sequence of <span class="code">PropertyError</span>'s
describing which QoS, possible range and why is not allowed. The error
codes are:
</p>
<ul>
<li>
UNSUPPORTED_PROPERTY - QoS not supported for this type of target object.
</li>
<li>
UNAVAILABLE_PROPERTY - due to current QoS settings the given property
is not allowed.
</li>
<li>
UNSUPPORTED_VALUE - property value out of range; valid range is returned.
</li>
<li>
UNAVAILABLE_VALUE - due to current QoS settings the given value is
not allowed; valid range is returned.
</li>
<li>
BAD_PROPERTY - unrecognized property.
</li>
<li>
BAD_TYPE - type of supplied property is incorrect.
</li>
<li>
BAD_VALUE - illegal value.
</li>
</ul>
<p>The CosEventDomainAdmin_EventDomain interface also supports an operation
called <span class="code">validate_qos/2</span>. 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><a name="3.1.3"><!-- Empty --></a>
<h4>3.1.3 Admin Properties</h4>
<p>The OMG specification do not contain any definitions of Admin Properties.
Hence, the cosEventDomain application currently does not support any Admin
Properties.
</p><center>
<hr/>
<small>cosEventDomain 1.1.3<br/>
Copyright © 1991-2008
<a href="http://www.ericsson.com/technology/opensource/erlang">Ericsson AB</a><br/>
</small>
</center></body>
</html>
|