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 MBeanServerdefaultServerprotected Stringhostnamestatic StringLOCATORS_EXT_KEYprotected 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 MBeanServerdoCreateServer(ServerLocatorDescriptor descriptor)protected MBeanServerdoFindServer(String domainName)protected JMXServiceURLdoFormatServerURL(ServerLocatorDescriptor descriptor)protected StringdoFormatThreadName(ServerLocatorDescriptor descriptor)protected StringdoGetHostname()protected voiddoRegisterLocator(ServerLocatorDescriptor descriptor)protected voiddoUnregisterLocator(ServerLocatorDescriptor descriptor)MBeanServerlookupServer()MBeanServerlookupServer(String domainName)MBeanServerlookupServer(ObjectName qualifiedName)voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)voidregisterLocator(String domain, boolean isDefault)voidunregisterContribution(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:
registerContributionin classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
unregisterContributionin 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:
lookupServerin interfaceServerLocator
-
lookupServer
public MBeanServer lookupServer()
- Specified by:
lookupServerin interfaceServerLocator
-
lookupServer
public MBeanServer lookupServer(String domainName)
- Specified by:
lookupServerin interfaceServerLocator
-
registerLocator
public void registerLocator(String domain, boolean isDefault)
-
-