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, unregisterExtension
public 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 DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
protected 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 ServerLocator
public MBeanServer lookupServer()
lookupServer
in interface ServerLocator
public MBeanServer lookupServer(String domainName)
lookupServer
in interface ServerLocator
public void registerLocator(String domain, boolean isDefault)
Copyright © 2015 Nuxeo SA. All rights reserved.