public interface HaProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addHaService(String serviceName,
List<String> urls)
Add a service name (role) as a HA service with the URLs that it is configured for
|
String |
getActiveURL(String serviceName)
Returns the current URL that is known to be active for the service
|
HaDescriptor |
getHaDescriptor() |
boolean |
isHaEnabled(String serviceName)
Returns whether the service is enabled for HA
|
void |
markFailedURL(String serviceName,
String url)
Mark the URL for the service as one that has failed.
|
HaDescriptor getHaDescriptor()
void addHaService(String serviceName, List<String> urls)
serviceName - the name of the serviceurls - the list of urls that can be used for that serviceboolean isHaEnabled(String serviceName)
serviceName - the name of the serviceString getActiveURL(String serviceName)
serviceName - the name of the serviceCopyright © 2014 Apache Software Foundation. All rights reserved.