Package org.nuxeo.runtime.management
Class ServerLocatorService
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.runtime.management.ServerLocatorService
-
- All Implemented Interfaces:
ServerLocator
,Adaptable
,Component
,Extensible
,TimestampedService
public class ServerLocatorService extends DefaultComponent implements ServerLocator
-
-
Field Summary
Fields Modifier and Type Field Description protected MBeanServer
defaultServer
protected String
hostname
static String
LOCATORS_EXT_KEY
protected Map<String,MBeanServer>
servers
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description ServerLocatorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String domainName)
MBeanServer
lookupServer(ObjectName qualifiedName)
void
registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
void
registerLocator(String domain, boolean isDefault)
void
unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
LOCATORS_EXT_KEY
public static final String LOCATORS_EXT_KEY
- See Also:
- Constant Field Values
-
servers
protected final Map<String,MBeanServer> servers
-
defaultServer
protected MBeanServer defaultServer
-
hostname
protected String hostname
-
-
Method Detail
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
unregisterContribution
in classDefaultComponent
-
doRegisterLocator
protected void doRegisterLocator(ServerLocatorDescriptor descriptor)
-
doGetHostname
protected String doGetHostname()
-
doFormatServerURL
protected JMXServiceURL doFormatServerURL(ServerLocatorDescriptor descriptor)
-
doFormatThreadName
protected String doFormatThreadName(ServerLocatorDescriptor descriptor)
-
doCreateServer
protected MBeanServer doCreateServer(ServerLocatorDescriptor descriptor)
-
doFindServer
protected MBeanServer doFindServer(String domainName)
-
doUnregisterLocator
protected void doUnregisterLocator(ServerLocatorDescriptor descriptor)
-
lookupServer
public MBeanServer lookupServer(ObjectName qualifiedName)
- Specified by:
lookupServer
in interfaceServerLocator
-
lookupServer
public MBeanServer lookupServer()
- Specified by:
lookupServer
in interfaceServerLocator
-
lookupServer
public MBeanServer lookupServer(String domainName)
- Specified by:
lookupServer
in interfaceServerLocator
-
registerLocator
public void registerLocator(String domain, boolean isDefault)
-
-