public class ServerLocatorService extends DefaultComponent implements ServerLocator
| Modifier and Type | Field and Description |
|---|---|
protected MBeanServer |
defaultServer |
protected String |
hostname |
static String |
LOCATORS_EXT_KEY |
protected Map<String,MBeanServer> |
servers |
lastModified| Constructor and Description |
|---|
ServerLocatorService() |
| Modifier and Type | Method and Description |
|---|---|
protected MBeanServer |
doCreateServer(ServerLocatorDescriptor descriptor) |
protected MBeanServer |
doFindServer(String domainName) |
protected JMXServiceURL |
doFormatServerURL(ServerLocatorDescriptor descriptor) |
protected String |
doFormatThreadName(ServerLocatorDescriptor descriptor) |
protected String |
doGetHostname() |
protected void |
doRegisterLocator(ServerLocatorDescriptor descriptor) |
protected void |
doUnregisterLocator(ServerLocatorDescriptor descriptor) |
MBeanServer |
lookupServer() |
MBeanServer |
lookupServer(ObjectName qualifiedName) |
MBeanServer |
lookupServer(String domainName) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
registerLocator(String domain,
boolean isDefault) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtensionpublic static final String LOCATORS_EXT_KEY
protected final Map<String,MBeanServer> servers
protected MBeanServer defaultServer
protected String hostname
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionprotected void doRegisterLocator(ServerLocatorDescriptor descriptor)
protected String doGetHostname()
protected JMXServiceURL doFormatServerURL(ServerLocatorDescriptor descriptor)
protected String doFormatThreadName(ServerLocatorDescriptor descriptor)
protected MBeanServer doCreateServer(ServerLocatorDescriptor descriptor)
protected MBeanServer doFindServer(String domainName)
protected void doUnregisterLocator(ServerLocatorDescriptor descriptor)
public MBeanServer lookupServer(ObjectName qualifiedName)
lookupServer in interface ServerLocatorpublic MBeanServer lookupServer()
lookupServer in interface ServerLocatorpublic MBeanServer lookupServer(String domainName)
lookupServer in interface ServerLocatorpublic void registerLocator(String domain, boolean isDefault)
Copyright © 2019 Nuxeo SA. All rights reserved.