Beispiel #1
0
 def __init__(self, methods=None, quiet=True):
     self._methods = []
     methods = iMockDebuggerSink()._getMethods()
     self._methods = methods
     self._enabled = False
     self._quiet = quiet
     self._lock = RLock()
     self._sink = None
Beispiel #2
0
 def __init__(self, peerName, theTime, filename, quiet):
     self._peerName = peerName
     self._fp = open(filename, "w")
     self.fp.write("File debugger started at: %(T)s for client: %(C)s"%{"T":theTime, "C":peerName})
     self.fp.flush()
     self._methods = []
     methods = iMockDebuggerSink()._getMethods()
     self._methods = methods
     self._terminate = False
     self.quiet=  quiet
     self._startMutex = Semaphore(0)
     self._q = Queue()
     self.thread = None
Beispiel #3
0
 def __init__(self, peerName, theTime, details, quiet):
     self._peerName = peerName
     self._methods = []
     methods = iMockDebuggerSink()._getMethods()
     self._methods = methods
     self._terminate = False
     self._details = details
     self._qw = None
     self._startMutex = Semaphore(0)
     self._q = Queue()
     self.quiet= quiet
     self._marshaller = MarshallerFactory.get(MarshallerFactory.DEFAULT, quiet=quiet)
     self._qw = QueueWriter(target=details, autoConnect=True, marshaller=self._marshaller, quiet=quiet)
     self._qw.start()
     self.thread = None
Beispiel #4
0
 def __init__(self, methods=None):
     self._methods = []
     methods = iMockDebuggerSink()._getMethods()
     self._methods = methods