def METHOD_NAME(self):
    """
    Here in Alarm is written the threshold to say if we're in disk alarm
    or not. Therefore the function "report" the amount of free space and
    the evaluation + alarm shift is performed here.
    workingdir: is performed a percentage check (at least 1% and an absolute comparison)
    "unusable node" threshold: happen when the space is really shitty.
    https://github.com/globaleaks/GlobaLeaks/issues/297
    https://github.com/globaleaks/GlobaLeaks/issues/872
    """
    self.measured_freespace, self.measured_totalspace = get_disk_space(State.settings.working_path)
    disk_space = 0
    disk_message = ""
    accept_submissions = True
    old_accept_submissions = State.accept_submissions
    for c in get_disk_anomaly_conditions(self.measured_freespace, self.measured_totalspace):
        if not c['condition']:
            continue
        disk_space = c['alarm_level']
        info_msg = c['info_msg']()
        if disk_space == 2:
            disk_message = "[FATAL] Disk anomaly, submissions disabled: %s" % info_msg
        else:  # == 1
            disk_message = "[WARNING]: Disk anomaly: %s" % info_msg
        accept_submissions = c['accept_submissions']
        break
    # This check is temporarily, want to be verified that the switch can be
    # logged as part of the Anomalies via this function
    old_alarm_level = self.alarm_levels['disk_space']
    if old_alarm_level != disk_space:
        if disk_message:
            log.err(disk_message)
        else:
            log.err("Available disk space returned to normal levels")
    # the value is set here with a single assignment in order to
    # minimize possible race conditions resetting/settings the values
    self.alarm_levels['disk_space'] = disk_space
    self.alarm_levels['disk_message'] = disk_message
    State.accept_submissions = accept_submissions
    if old_accept_submissions != State.accept_submissions:
        log.info("Switching disk space availability from: %s to %s",
                 old_accept_submissions, accept_submissions)
        # Must invalidate the cache here becuase accept_subs served in /public has changed
        Cache.invalidate()