'Retrieves the running JMX checks based on the {tmp}/jmx_status.yaml file
updated by JMXFetch (and the only communication channel between JMXFetch
and the collector since JMXFetch).'

@classmethod
def get_jmx_appnames(cls):

    check_names = []
    jmx_status_path = os.path.join(cls._get_dir(), cls._STATUS_FILE)
    if os.path.exists(jmx_status_path):
        jmx_checks = yaml.load(file(jmx_status_path)).get('checks', {})
        check_names = [name for name in jmx_checks.get('initialized_checks', {}).iterkeys()]
    return check_names
