def reload_(jboss_config, host=None):
    log.debug("======================== MODULE FUNCTION: jboss7.reload")
    if host is None:
        operation = ':reload'
    else:
        operation = '/host="{host}"/:reload'.format(host=host)
    reload_result = __salt__['jboss7_cli.run_operation'](jboss_config, operation, fail_on_error=False)
    # JBoss seems to occasionaly close the channel immediately when :reload is sent
    if reload_result['success'] or (not reload_result['success'] and
                                         ('Operation failed: Channel closed' in reload_result['stdout'] or
                                          'Communication error: java.util.concurrent.ExecutionException: Operation failed' in reload_result['stdout'])):
        return reload_result
    else:
        raise Exception('''Cannot handle error, return code={retcode}, stdout='{stdout}', stderr='{stderr}' '''.format(**reload_result))
Reload running jboss instance
dataset/ETHPy150Open saltstack/salt/salt/modules/jboss7.py/reload_