def __init__(self, tether, delegate=None): def datawire_agent(): args = [] args.append(peel(tether)) args.append(Probe.adapt(delegate)) return io_datawire.Agent(*args) WrappedHandler.__init__(self, datawire_agent)
def __init__(self, store=None): def datawire_stream(): args = [] if store is not None: args.append(Store._peel(store)) return io_datawire.Stream(*args) WrappedHandler.__init__(self, datawire_stream)
def __init__(self, delegate=None, frequency=None): def datawire_sampler(): args = [] args.append(unwrap_handler(delegate)) if frequency is not None: args.append(frequency) return io_datawire.Sampler(*args) WrappedHandler.__init__(self, datawire_sampler)
def __init__(self, delegate=None, *handlers): def datawire_decoder(): children = [] args = [children] if delegate is not None: children.append(unwrap_handler(delegate)) children.extend(map(unwrap_handler, handlers)) return io_datawire.Decoder(*args) WrappedHandler.__init__(self, datawire_decoder)
def __init__(self, delegate=None, window=None): def datawire_processor(): args = [] args.append(unwrap_handler(delegate)) if window is not None: args.append(window) ret = io_datawire.Processor(*args) return ret WrappedHandler.__init__(self, datawire_processor)
def __init__(self): WrappedHandler.__init__(self, pn_iohandler)
def __init__(self): WrappedHandler.__init__(self, pn_handshaker)
def __init__(self, window=1024): WrappedHandler.__init__(self, lambda: pn_flowcontroller(window))
def _get_global(self): return WrappedHandler.wrap(pn_reactor_get_global_handler(self._impl), self.on_error)
def _get_handler(self): return WrappedHandler.wrap(pn_reactor_get_handler(self._impl), self.on_error_delegate())
def __getitem__(self, address): return WrappedHandler.wrap(self._impl.get(address))
def __init__(self, root = None): def datawire_container(): args = [] args.append(unwrap_handler(root)) return io_datawire.Container(*args) WrappedHandler.__init__(self, datawire_container)
def __init__(self, impl_or_constructor): WrappedHandler.__init__(self, impl_or_constructor)
def __init__(self, directory, address, target, host=None, port=None, policy=None, agent_type=None): def datawire_tether(): args = [directory, address, target, host, port, policy, agent_type] return io_datawire.Tether(*args) WrappedHandler.__init__(self, datawire_tether)