kmip/services/server/monitor.py
def run(self):
        """
        Start monitoring operation policy files.
        """
        self.initialize_tracking_structures()

        if self.live_monitoring:
            self.logger.info("Starting up the operation policy file monitor.")
            while not self.halt_trigger.is_set():
                time.sleep(1)
                self.scan_policies()
            self.logger.info("Stopping the operation policy file monitor.")
        else:
            self.scan_policies()
def run(self):
        self.initialize_tracking_structures()

        if self.live_monitoring:
            self.logger.info("Starting up the operation policy file monitor.")
            while not self.halt_trigger.is_set():
                time.sleep(1)
                self.scan_policies()
            self.logger.info("Stopping the operation policy file monitor.")
        else:
            self.scan_policies()
def run ( self ) : self . initialize_tracking_structures ( ) if self . live_monitoring : self . logger . info ( "Starting up the operation policy file monitor." ) while not self . halt_trigger . is_set ( ) : time . sleep ( 1 ) self . scan_policies ( ) self . logger . info ( "Stopping the operation policy file monitor." ) else : self . scan_policies ( )
Start monitoring operation policy files.
Start monitoring operation policy files .