public static boolean isHAEnabled ( Configuration configuration ) { boolean ret = false ; if ( configuration . containsKey ( HAConfiguration . ATLAS_SERVER_HA_ENABLED_KEY ) ) { ret = configuration . getBoolean ( ATLAS_SERVER_HA_ENABLED_KEY ) ; } else { String [ ] ids = configuration . getStringArray ( HAConfiguration . ATLAS_SERVER_IDS ) ; ret = ids != null && ids . length > 1 ; } return ret ; }
Return whether HA is enabled or not .