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, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderpublic static final String LOCATORS_EXT_KEY
protected final Map<String,MBeanServer> servers
protected MBeanServer defaultServer
public ServerLocatorService()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentprotected 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 © 2018 Nuxeo. All rights reserved.