1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.forwarders.do_nothing_forwarder</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.forwarders.html"><font color="#ffffff">forwarders</font></a>.do_nothing_forwarder</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/forwarders/do_nothing_forwarder.py">telemetry/internal/forwarders/do_nothing_forwarder.py</a></font></td></tr></table> 13 <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14# Use of this source code is governed by a BSD-style license that can be<br> 15# found in the LICENSE file.</tt></p> 16<p> 17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18<tr bgcolor="#aa55cc"> 19<td colspan=3 valign=bottom> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="contextlib.html">contextlib</a><br> 24<a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> 25</td><td width="25%" valign=top><a href="telemetry.internal.forwarders.html">telemetry.internal.forwarders</a><br> 26<a href="logging.html">logging</a><br> 27</td><td width="25%" valign=top><a href="socket.html">socket</a><br> 28<a href="telemetry.core.util.html">telemetry.core.util</a><br> 29</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 30<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 31<tr bgcolor="#ee77aa"> 32<td colspan=3 valign=bottom> <br> 33<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 34 35<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 36<td width="100%"><dl> 37<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) 38</font></dt><dd> 39<dl> 40<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a> 41</font></dt><dd> 42<dl> 43<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#ConnectionError">ConnectionError</a> 44</font></dt><dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#PortsMismatchError">PortsMismatchError</a> 45</font></dt></dl> 46</dd> 47</dl> 48</dd> 49<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 50</font></dt><dd> 51<dl> 52<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#DoNothingForwarder">DoNothingForwarder</a> 53</font></dt></dl> 54</dd> 55<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 56</font></dt><dd> 57<dl> 58<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#DoNothingForwarderFactory">DoNothingForwarderFactory</a> 59</font></dt></dl> 60</dd> 61</dl> 62 <p> 63<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 64<tr bgcolor="#ffc8d8"> 65<td colspan=3 valign=bottom> <br> 66<font color="#000000" face="helvetica, arial"><a name="ConnectionError">class <strong>ConnectionError</strong></a>(<a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a>)</font></td></tr> 67 68<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 69<td colspan=2><tt>Raised when unable to connect to local TCP ports.<br> </tt></td></tr> 70<tr><td> </td> 71<td width="100%"><dl><dt>Method resolution order:</dt> 72<dd><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#ConnectionError">ConnectionError</a></dd> 73<dd><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a></dd> 74<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> 75<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> 76<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 77</dl> 78<hr> 79Data descriptors inherited from <a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a>:<br> 80<dl><dt><strong>__weakref__</strong></dt> 81<dd><tt>list of weak references to the object (if defined)</tt></dd> 82</dl> 83<hr> 84Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 85<dl><dt><a name="ConnectionError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl> 86 87<hr> 88Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 89<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#ConnectionError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> 90 91<hr> 92Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 93<dl><dt><a name="ConnectionError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> 94 95<dl><dt><a name="ConnectionError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> 96 97<dl><dt><a name="ConnectionError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> 98 99<dl><dt><a name="ConnectionError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> 100 <br> 101Use of negative indices is not supported.</tt></dd></dl> 102 103<dl><dt><a name="ConnectionError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> 104 105<dl><dt><a name="ConnectionError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> 106 107<dl><dt><a name="ConnectionError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> 108 109<dl><dt><a name="ConnectionError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> 110 111<dl><dt><a name="ConnectionError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#ConnectionError-__str__">__str__</a>() <==> str(x)</tt></dd></dl> 112 113<dl><dt><a name="ConnectionError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> 114 115<hr> 116Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 117<dl><dt><strong>__dict__</strong></dt> 118</dl> 119<dl><dt><strong>args</strong></dt> 120</dl> 121<dl><dt><strong>message</strong></dt> 122</dl> 123</td></tr></table> <p> 124<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 125<tr bgcolor="#ffc8d8"> 126<td colspan=3 valign=bottom> <br> 127<font color="#000000" face="helvetica, arial"><a name="DoNothingForwarder">class <strong>DoNothingForwarder</strong></a>(<a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>)</font></td></tr> 128 129<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 130<td colspan=2><tt>Check that no forwarding is needed for the given port pairs.<br> 131 <br> 132The local and remote ports must be equal. Otherwise, the "do nothing"<br> 133forwarder does not make sense. (Raises <a href="#PortsMismatchError">PortsMismatchError</a>.)<br> 134 <br> 135Also, check that all TCP ports support connections. (Raises <a href="#ConnectionError">ConnectionError</a>.)<br> </tt></td></tr> 136<tr><td> </td> 137<td width="100%"><dl><dt>Method resolution order:</dt> 138<dd><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#DoNothingForwarder">DoNothingForwarder</a></dd> 139<dd><a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a></dd> 140<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 141</dl> 142<hr> 143Methods defined here:<br> 144<dl><dt><a name="DoNothingForwarder-__init__"><strong>__init__</strong></a>(self, port_pairs)</dt></dl> 145 146<hr> 147Methods inherited from <a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>:<br> 148<dl><dt><a name="DoNothingForwarder-Close"><strong>Close</strong></a>(self)</dt></dl> 149 150<hr> 151Data descriptors inherited from <a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>:<br> 152<dl><dt><strong>__dict__</strong></dt> 153<dd><tt>dictionary for instance variables (if defined)</tt></dd> 154</dl> 155<dl><dt><strong>__weakref__</strong></dt> 156<dd><tt>list of weak references to the object (if defined)</tt></dd> 157</dl> 158<dl><dt><strong>host_ip</strong></dt> 159</dl> 160<dl><dt><strong>host_port</strong></dt> 161</dl> 162<dl><dt><strong>port_pairs</strong></dt> 163</dl> 164<dl><dt><strong>url</strong></dt> 165</dl> 166</td></tr></table> <p> 167<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 168<tr bgcolor="#ffc8d8"> 169<td colspan=3 valign=bottom> <br> 170<font color="#000000" face="helvetica, arial"><a name="DoNothingForwarderFactory">class <strong>DoNothingForwarderFactory</strong></a>(<a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a>)</font></td></tr> 171 172<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 173<td width="100%"><dl><dt>Method resolution order:</dt> 174<dd><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#DoNothingForwarderFactory">DoNothingForwarderFactory</a></dd> 175<dd><a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a></dd> 176<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 177</dl> 178<hr> 179Methods defined here:<br> 180<dl><dt><a name="DoNothingForwarderFactory-Create"><strong>Create</strong></a>(self, port_pairs)</dt></dl> 181 182<hr> 183Data descriptors inherited from <a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a>:<br> 184<dl><dt><strong>__dict__</strong></dt> 185<dd><tt>dictionary for instance variables (if defined)</tt></dd> 186</dl> 187<dl><dt><strong>__weakref__</strong></dt> 188<dd><tt>list of weak references to the object (if defined)</tt></dd> 189</dl> 190<dl><dt><strong>does_forwarder_override_dns</strong></dt> 191</dl> 192<dl><dt><strong>host_ip</strong></dt> 193</dl> 194</td></tr></table> <p> 195<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 196<tr bgcolor="#ffc8d8"> 197<td colspan=3 valign=bottom> <br> 198<font color="#000000" face="helvetica, arial"><a name="Error">class <strong>Error</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> 199 200<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 201<td colspan=2><tt>Base class for exceptions in this module.<br> </tt></td></tr> 202<tr><td> </td> 203<td width="100%"><dl><dt>Method resolution order:</dt> 204<dd><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a></dd> 205<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> 206<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> 207<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 208</dl> 209<hr> 210Data descriptors defined here:<br> 211<dl><dt><strong>__weakref__</strong></dt> 212<dd><tt>list of weak references to the object (if defined)</tt></dd> 213</dl> 214<hr> 215Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 216<dl><dt><a name="Error-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl> 217 218<hr> 219Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 220<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Error-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> 221 222<hr> 223Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 224<dl><dt><a name="Error-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> 225 226<dl><dt><a name="Error-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> 227 228<dl><dt><a name="Error-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> 229 230<dl><dt><a name="Error-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> 231 <br> 232Use of negative indices is not supported.</tt></dd></dl> 233 234<dl><dt><a name="Error-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> 235 236<dl><dt><a name="Error-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> 237 238<dl><dt><a name="Error-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> 239 240<dl><dt><a name="Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> 241 242<dl><dt><a name="Error-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__str__">__str__</a>() <==> str(x)</tt></dd></dl> 243 244<dl><dt><a name="Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> 245 246<hr> 247Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 248<dl><dt><strong>__dict__</strong></dt> 249</dl> 250<dl><dt><strong>args</strong></dt> 251</dl> 252<dl><dt><strong>message</strong></dt> 253</dl> 254</td></tr></table> <p> 255<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 256<tr bgcolor="#ffc8d8"> 257<td colspan=3 valign=bottom> <br> 258<font color="#000000" face="helvetica, arial"><a name="PortsMismatchError">class <strong>PortsMismatchError</strong></a>(<a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a>)</font></td></tr> 259 260<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 261<td colspan=2><tt>Raised when local and remote ports are not equal.<br> </tt></td></tr> 262<tr><td> </td> 263<td width="100%"><dl><dt>Method resolution order:</dt> 264<dd><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#PortsMismatchError">PortsMismatchError</a></dd> 265<dd><a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a></dd> 266<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> 267<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> 268<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 269</dl> 270<hr> 271Data descriptors inherited from <a href="telemetry.internal.forwarders.do_nothing_forwarder.html#Error">Error</a>:<br> 272<dl><dt><strong>__weakref__</strong></dt> 273<dd><tt>list of weak references to the object (if defined)</tt></dd> 274</dl> 275<hr> 276Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 277<dl><dt><a name="PortsMismatchError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl> 278 279<hr> 280Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> 281<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#PortsMismatchError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> 282 283<hr> 284Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 285<dl><dt><a name="PortsMismatchError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> 286 287<dl><dt><a name="PortsMismatchError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> 288 289<dl><dt><a name="PortsMismatchError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> 290 291<dl><dt><a name="PortsMismatchError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> 292 <br> 293Use of negative indices is not supported.</tt></dd></dl> 294 295<dl><dt><a name="PortsMismatchError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> 296 297<dl><dt><a name="PortsMismatchError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> 298 299<dl><dt><a name="PortsMismatchError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> 300 301<dl><dt><a name="PortsMismatchError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> 302 303<dl><dt><a name="PortsMismatchError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#PortsMismatchError-__str__">__str__</a>() <==> str(x)</tt></dd></dl> 304 305<dl><dt><a name="PortsMismatchError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> 306 307<hr> 308Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> 309<dl><dt><strong>__dict__</strong></dt> 310</dl> 311<dl><dt><strong>args</strong></dt> 312</dl> 313<dl><dt><strong>message</strong></dt> 314</dl> 315</td></tr></table></td></tr></table> 316</body></html>