Beispiel #1
0
 def __init__(self):
     CLogMessageSource.__init__(self)
     # Modelled like CProcess: messages, errors
     self.messages = legacy.deque(maxlen=500)
     self.errors = legacy.deque(maxlen=200)
     self.srcid = "castcontrol"
     self._lock = threading.Lock()
 def __init__(self, name, address, port):
     self.name = name
     self.address = address
     self.port = port
     self.proclist = []
     self._ic = None
     self._agentProxy = None
     self.online = False
     self.observers = [] # proclist change, etc.
     self.remoteInternalMessages = legacy.deque(maxlen=500)
     self.srcid = "remote.%s.%s" % (self.name.replace('.', '_'), self.address.replace('.', '_'))
     self._lock = threading.Lock()
 def __init__(self, manager, name, host):
     CProcessBase.__init__(self, name, host)
     self.manager = manager
     self.messages = legacy.deque(maxlen=500)
     self.srcid = "remote.%s.%s" % (host.host.replace('.', '_'), name.replace('.', '_'))
     self._lock = threading.Lock()