public class DefaultHaServiceConfig extends Object implements HaServiceConfig, HaServiceConfigConstants
CONFIG_PAIR_DELIMITER, CONFIG_PAIRS_DELIMITER, CONFIG_PARAM_ENABLED, CONFIG_PARAM_FAILOVER_SLEEP, CONFIG_PARAM_MAX_FAILOVER_ATTEMPTS, CONFIG_PARAM_MAX_RETRY_ATTEMPTS, CONFIG_PARAM_RETRY_SLEEP, DEFAULT_ENABLED, DEFAULT_FAILOVER_SLEEP, DEFAULT_MAX_FAILOVER_ATTEMPTS, DEFAULT_MAX_RETRY_ATTEMPTS, DEFAULT_RETRY_SLEEP| Constructor and Description |
|---|
DefaultHaServiceConfig(String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFailoverSleep() |
int |
getMaxFailoverAttempts() |
int |
getMaxRetryAttempts() |
int |
getRetrySleep() |
String |
getServiceName() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setFailoverSleep(int failoverSleep) |
void |
setMaxFailoverAttempts(int maxFailoverAttempts) |
void |
setMaxRetryAttempts(int maxRetryAttempts) |
void |
setRetrySleep(int retrySleep) |
void |
setServiceName(String name) |
public DefaultHaServiceConfig(String name)
public String getServiceName()
getServiceName in interface HaServiceConfigpublic void setServiceName(String name)
setServiceName in interface HaServiceConfigpublic boolean isEnabled()
isEnabled in interface HaServiceConfigpublic void setEnabled(boolean enabled)
setEnabled in interface HaServiceConfigpublic int getMaxFailoverAttempts()
getMaxFailoverAttempts in interface HaServiceConfigpublic void setMaxFailoverAttempts(int maxFailoverAttempts)
setMaxFailoverAttempts in interface HaServiceConfigpublic int getFailoverSleep()
getFailoverSleep in interface HaServiceConfigpublic void setFailoverSleep(int failoverSleep)
setFailoverSleep in interface HaServiceConfigpublic int getMaxRetryAttempts()
getMaxRetryAttempts in interface HaServiceConfigpublic void setMaxRetryAttempts(int maxRetryAttempts)
setMaxRetryAttempts in interface HaServiceConfigpublic int getRetrySleep()
getRetrySleep in interface HaServiceConfigpublic void setRetrySleep(int retrySleep)
setRetrySleep in interface HaServiceConfigCopyright © 2014 Apache Software Foundation. All rights reserved.