Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
    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)
Exemple #4
0
 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)
Exemple #5
0
 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)
Exemple #6
0
 def __init__(self):
     WrappedHandler.__init__(self, pn_iohandler)
Exemple #7
0
 def __init__(self):
     WrappedHandler.__init__(self, pn_handshaker)
Exemple #8
0
 def __init__(self, window=1024):
     WrappedHandler.__init__(self, lambda: pn_flowcontroller(window))
Exemple #9
0
 def _get_global(self):
     return WrappedHandler.wrap(pn_reactor_get_global_handler(self._impl), self.on_error)
Exemple #10
0
 def _get_handler(self):
     return WrappedHandler.wrap(pn_reactor_get_handler(self._impl),
                                self.on_error_delegate())
Exemple #11
0
 def __init__(self):
     WrappedHandler.__init__(self, pn_iohandler)
Exemple #12
0
 def __init__(self):
     WrappedHandler.__init__(self, pn_handshaker)
Exemple #13
0
 def __init__(self, window=1024):
     WrappedHandler.__init__(self, lambda: pn_flowcontroller(window))
Exemple #14
0
 def __getitem__(self, address):
     return WrappedHandler.wrap(self._impl.get(address))
Exemple #15
0
 def __init__(self, root = None):
   def datawire_container():
     args = []
     args.append(unwrap_handler(root))
     return io_datawire.Container(*args)
   WrappedHandler.__init__(self, datawire_container)
Exemple #16
0
 def __init__(self, impl_or_constructor):
   WrappedHandler.__init__(self, impl_or_constructor)
Exemple #17
0
 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)