def __init__(self,
              host,
              sampling_port,
              reporting_port,
              throttling_port=None):
     LocalAgentReader.__init__(self, host, sampling_port, reporting_port,
                               throttling_port)
     # UDP reporting - this will only get written to after our flush() call.
     # We are buffering things up because we are a TBufferedTransport.
     udp = TUDPTransport(host, reporting_port)
     TBufferedTransport.__init__(self, udp)
    def __init__(self, host, sampling_port, reporting_port, io_loop=None):
        # IOLoop
        self._thread_loop = None
        self.io_loop = io_loop or self._create_new_thread_loop()

        # http sampling
        self.local_agent_http = LocalAgentHTTP(host, sampling_port)

        # udp reporting - this will only get written to after our flush() call.
        # We are buffering things up because we are a TBufferedTransport.
        udp = TUDPTransport(host, reporting_port)
        TBufferedTransport.__init__(self, udp)
    def __init__(self, host, sampling_port, reporting_port, ioloop=None):
        # ioloop
        if ioloop is None:
            self.create_new_threadloop()
        else:
            self.io_loop = ioloop

        # http sampling
        self.local_agent_http = LocalAgentHTTP(host, sampling_port)

        # udp reporting - this will only get written to after our flush() call.
        # We are buffering things up because we are a TBufferedTransport.
        udp = TUDPTransport(host, reporting_port)
        TBufferedTransport.__init__(self, udp)
Пример #4
0
 def __init__(self, trans, rbuf_size=DEFAULT_BUFFER):
     TBufferedTransport.__init__(self, trans, rbuf_size)
     self.handle = trans.handle
     self.remoteaddr = trans.handle.getpeername()
Пример #5
0
 def __init__(self, trans, rbuf_size = DEFAULT_BUFFER):
     TBufferedTransport.__init__(self, trans, rbuf_size)
     self.handle = trans.handle
     self.remoteaddr = trans.handle.getpeername()