telemetry.internal.forwarders.do_nothing_forwarder | index telemetry/internal/forwarders/do_nothing_forwarder.py

`# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |

contextlib telemetry.core.exceptions | telemetry.internal.forwarders logging | socket telemetry.core.util |

Classes
`` |  |

exceptions.Exception(exceptions.BaseException)
  Error
    ConnectionError
    PortsMismatchError
telemetry.internal.forwarders.Forwarder(__builtin__.object)
  DoNothingForwarder
telemetry.internal.forwarders.ForwarderFactory(__builtin__.object)
  DoNothingForwarderFactory

class ConnectionError(Error)
`` | `Raised when unable to connect to local TCP ports.`

Method resolution order:
  ConnectionError
  Error
  exceptions.Exception
  exceptions.BaseException
  __builtin__.object

Data descriptors inherited from Error:

__weakref__
  `list of weak references to the object (if defined)`

Methods inherited from exceptions.Exception:

__init__(...)
  `x.__init__(...) initializes x; see help(type(x)) for signature`

Data and other attributes inherited from exceptions.Exception:

__new__ = <built-in method __new__ of type object>
  `T.__new__(S, ...) -> a new object with type S, a subtype of T`

Methods inherited from exceptions.BaseException:

__delattr__(...)
  `x.__delattr__('name') <==> del x.name`

__getattribute__(...)
  `x.__getattribute__('name') <==> x.name`

__getitem__(...)
  `x.__getitem__(y) <==> x[y]`

__getslice__(...)
  `x.__getslice__(i, j) <==> x[i:j]
  Use of negative indices is not supported.`

__reduce__(...)

__repr__(...)
  `x.__repr__() <==> repr(x)`

__setattr__(...)
  `x.__setattr__('name', value) <==> x.name = value`

__setstate__(...)

__str__(...)
  `x.__str__() <==> str(x)`

__unicode__(...)

Data descriptors inherited from exceptions.BaseException:

__dict__

args

message

class DoNothingForwarder(telemetry.internal.forwarders.Forwarder)
`` | `Check that no forwarding is needed for the given port pairs. The local and remote ports must be equal. Otherwise, the "do nothing" forwarder does not make sense. (Raises PortsMismatchError.) Also, check that all TCP ports support connections. (Raises ConnectionError.)
`

Method resolution order:
  DoNothingForwarder
  telemetry.internal.forwarders.Forwarder
  __builtin__.object

Methods defined here:

__init__(self, port_pairs)

Methods inherited from telemetry.internal.forwarders.Forwarder:

Close(self)

Data descriptors inherited from telemetry.internal.forwarders.Forwarder:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

host_ip

host_port

port_pairs

url

class DoNothingForwarderFactory(telemetry.internal.forwarders.ForwarderFactory)
`` |  |

Method resolution order:
  DoNothingForwarderFactory
  telemetry.internal.forwarders.ForwarderFactory
  __builtin__.object

Methods defined here:

Create(self, port_pairs)

Data descriptors inherited from telemetry.internal.forwarders.ForwarderFactory:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

does_forwarder_override_dns

host_ip

class Error(exceptions.Exception)
`` | `Base class for exceptions in this module.`

Method resolution order:
  Error
  exceptions.Exception
  exceptions.BaseException
  __builtin__.object

Data descriptors defined here:

__weakref__
  `list of weak references to the object (if defined)`

Methods inherited from exceptions.Exception:

__init__(...)
  `x.__init__(...) initializes x; see help(type(x)) for signature`

Data and other attributes inherited from exceptions.Exception:

__new__ = <built-in method __new__ of type object>
  `T.__new__(S, ...) -> a new object with type S, a subtype of T`

Methods inherited from exceptions.BaseException:

__delattr__(...)
  `x.__delattr__('name') <==> del x.name`

__getattribute__(...)
  `x.__getattribute__('name') <==> x.name`

__getitem__(...)
  `x.__getitem__(y) <==> x[y]`

__getslice__(...)
  `x.__getslice__(i, j) <==> x[i:j]
  Use of negative indices is not supported.`

__reduce__(...)

__repr__(...)
  `x.__repr__() <==> repr(x)`

__setattr__(...)
  `x.__setattr__('name', value) <==> x.name = value`

__setstate__(...)

__str__(...)
  `x.__str__() <==> str(x)`

__unicode__(...)

Data descriptors inherited from exceptions.BaseException:

__dict__

args

message

class PortsMismatchError(Error)
`` | `Raised when local and remote ports are not equal.`

Method resolution order:
  PortsMismatchError
  Error
  exceptions.Exception
  exceptions.BaseException
  __builtin__.object

Data descriptors inherited from Error:

__weakref__
  `list of weak references to the object (if defined)`

Methods inherited from exceptions.Exception:

__init__(...)
  `x.__init__(...) initializes x; see help(type(x)) for signature`

Data and other attributes inherited from exceptions.Exception:

__new__ = <built-in method __new__ of type object>
  `T.__new__(S, ...) -> a new object with type S, a subtype of T`

Methods inherited from exceptions.BaseException:

__delattr__(...)
  `x.__delattr__('name') <==> del x.name`

__getattribute__(...)
  `x.__getattribute__('name') <==> x.name`

__getitem__(...)
  `x.__getitem__(y) <==> x[y]`

__getslice__(...)
  `x.__getslice__(i, j) <==> x[i:j]
  Use of negative indices is not supported.`

__reduce__(...)

__repr__(...)
  `x.__repr__() <==> repr(x)`

__setattr__(...)
  `x.__setattr__('name', value) <==> x.name = value`

__setstate__(...)

__str__(...)
  `x.__str__() <==> str(x)`

__unicode__(...)

Data descriptors inherited from exceptions.BaseException:

__dict__

args

message