(self,port=M2DB_PORT)
遍历所有的madmin，与数据库进行同步。

        >>>MAdminManager().checkAdmins(port=M2DB_PORT)
遍历所有的madmin，与数据库进行同步。
遍历所有的madmin，与数据库进行同步。
def checkAdmins(self,port=M2DB_PORT):
        """遍历所有的madmin，与数据库进行同步。

        >>>MAdminManager().checkAdmins(port=M2DB_PORT)
        """
        if self.isStart:
            return
        self.isStart=True
        context = zmq.Context()
        self.sock = context.socket(zmq.SUB)
        
        if port==M2DB_PORT:
            port = ToDBAddress().m2db_port
        address = 'tcp://*:%s'%port
        self.sock.bind(address)
        self.sock.setsockopt(zmq.SUBSCRIBE, "")
        gevent.spawn(self._run)
def checkAdmins ( self , port = M2DB_PORT ) : if self . isStart : return self . isStart = True context = zmq . Context ( ) self . sock = context . socket ( zmq . SUB ) if port == M2DB_PORT : port = ToDBAddress ( ) . m2db_port address = 'tcp://*:%s' % port self . sock . bind ( address ) self . sock . setsockopt ( zmq . SUBSCRIBE , "" ) gevent . spawn ( self . _run )