@staticmethod<EOL><INDENT>def check() -> Result:<DEDENT>
try:<EOL><INDENT>with Connection(conf.get('<STR_LIT>')) as conn:<EOL><INDENT>conn.connect()<EOL><DEDENT><DEDENT>except ConnectionRefusedError:<EOL><INDENT>return Result(message='<STR_LIT>',<EOL>severity=Result.ERROR)<EOL><DEDENT>except AccessRefused:<EOL><INDENT>return Result(message='<STR_LIT>',<EOL>severity=Result.ERROR)<EOL><DEDENT>except IOError:<EOL><INDENT>return Result(message='<STR_LIT>', severity=Result.ERROR)<EOL><DEDENT>except Exception as e:<EOL><INDENT>return Result(message='<STR_LIT>'.format(e), severity=Result.ERROR)<EOL><DEDENT>else:<EOL><INDENT>return Result()<EOL><DEDENT>
Open and close the broker channel.