public class ClientFactorySwitcher extends Object implements ESClientFactory, ClientFactorySwitcherMBean
| Constructor and Description |
|---|
ClientFactorySwitcher(String configured,
String name,
Map<String,ESClientFactory> map) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.client.Client |
client(String logName)
Returns a client.
|
String |
getConfigured() |
void |
init() |
void |
setConfigured(String configured) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclientpublic ClientFactorySwitcher(String configured, String name, Map<String,ESClientFactory> map)
@PostConstruct public void init() throws MalformedObjectNameException, NotCompliantMBeanException, InstanceAlreadyExistsException, MBeanRegistrationException
public org.elasticsearch.client.Client client(String logName)
ESClientFactoryclient in interface ESClientFactorypublic void setConfigured(String configured)
setConfigured in interface ClientFactorySwitcherMBeanpublic String getConfigured()
getConfigured in interface ClientFactorySwitcherMBeanCopyright © 2020. All rights reserved.