def unManageTrace(self, trace): """ Untie this trace manager from the trace. """ if vtrace.remote: trace.deregisterNotifier(vtrace.NOTIFY_ALL, v_rmi.getCallbackProxy(trace, self.dnotif)) else: trace.deregisterNotifier(vtrace.NOTIFY_ALL, self.dnotif)
def manageTrace(self, trace): """ Set all the modes/meta/notifiers in this trace for management by this TraceManager. """ self.trace = trace if vtrace.remote: trace.registerNotifier(vtrace.NOTIFY_ALL, v_rmi.getCallbackProxy(trace, self.dnotif)) else: trace.registerNotifier(vtrace.NOTIFY_ALL, self.dnotif) for name,val in self.modes.items(): trace.setMode(name, val) for name,val in self.metadata.items(): trace.setMeta(name, val)