public class MessageService extends ModelSystemService implements ServiceLifecycle, MessageServiceMBean, NMRStatistics
mAdminServiceMBeanName, mConfigServiceMBeanName, mDeployServiceMBeanName, mDisplayName, mEnv, mInitialMBeans, mInstallServiceMBeanName, mLifeCycleMBeanName, mLogger, mLoggerImpl, mLoggerMBeanName, mLoggingServiceMBeanName, mMBeanNames, mMBeanServer, mMessageServiceMBeanName, mModelName, mStartMBeans, mStatisticsMBeanName, mTranslatorSHUTDOWN, STARTED, STOPPED, UNKNOWN| Constructor and Description |
|---|
MessageService()
Create a new instance of the NMS.
|
| Modifier and Type | Method and Description |
|---|---|
DeliveryChannelImpl |
activateChannel(String componentId,
ClassLoader classLoader)
Create a new delivery channel.
|
void |
addObserver(DeliveryChannel channel)
Add a component as an observer of the NMR
|
void |
addXAResource(XAResource resource) |
boolean |
areStatisticsEnabled() |
void |
disableStatistics() |
void |
dumpState()
Dump the state of the MessageService to the log.
|
void |
enableStatistics() |
int |
getActiveChannelCount()
Returns the total number of DeliveryChannels that have been activated
in the NMR.
|
String[] |
getActiveChannels()
Returns the identifiers of all the active channels.
|
String[] |
getActiveConsumingEndpoints()
Returns a list of active consuming endpoints in the NMR.
|
String[] |
getActiveConsumingEndpoints(String ownerId)
Identical to getActiveEndpoints(), but list is limited to endpoints
registered by the specified component.
|
int |
getActiveEndpointCount()
Returns a list of component IDs corresponding to active channels in the NMR.
|
String[] |
getActiveEndpoints()
Returns a list of active endpoints in the NMR.
|
String[] |
getActiveEndpoints(String ownerId)
Identical to getActiveEndpoints(), but list is limited to endpoints
registered by the specified component.
|
String[] |
getChannelNames() |
ChannelStatistics |
getChannelStatistics(String name) |
ConnectionManager |
getConnectionManager()
Get a reference to the NMR ConnectionManager.
|
String[] |
getConsumingEndpointNames() |
String |
getDescriptor(String service,
String endpoint)
Provides metadata query facility for endpoints registered with the NMR.
|
String[] |
getEndpointNames() |
EndpointStatistics |
getEndpointStatistics(String name) |
CompositeData |
getStatistics() |
XAResource[] |
getXAResources() |
void |
initService(EnvironmentContext ctx)
Init our environment.
|
void |
purgeXAResources() |
void |
removeObserver(DeliveryChannel channel)
Remove a component as an observer of the NMR
|
void |
startService()
Start the NMS.
|
void |
stopService()
Stop the NMS.
|
String |
toString() |
void |
zeroStatistics() |
addNotificationListener, bootstrap, getComponentQuery, getCurrentState, getNotificationBroadcaster, getNotificationInfo, getRegistry, initModelSystemService, initModelSystemService, removeNotificationListener, removeNotificationListener, shutDown, start, stoppublic void initService(EnvironmentContext ctx) throws JBIException
initService in interface ServiceLifecycleJBIExceptionpublic void startService()
throws JBIException
startService in interface ServiceLifecycleJBIExceptionpublic void stopService()
throws JBIException
stopService in interface ServiceLifecycleJBIExceptionpublic DeliveryChannelImpl activateChannel(String componentId, ClassLoader classLoader) throws MessagingException
componentId - component idclassLoader - class loader for componentMessagingException - attempt to activate
duplicate channel.public ConnectionManager getConnectionManager()
public void addXAResource(XAResource resource)
public XAResource[] getXAResources()
public void purgeXAResources()
public int getActiveChannelCount()
getActiveChannelCount in interface MessageServiceMBeanpublic String[] getActiveChannels()
getActiveChannels in interface MessageServiceMBeanpublic int getActiveEndpointCount()
getActiveEndpointCount in interface MessageServiceMBeanpublic String[] getActiveEndpoints()
getActiveEndpoints in interface MessageServiceMBeanpublic String[] getActiveConsumingEndpoints()
getActiveConsumingEndpoints in interface MessageServiceMBeanpublic String[] getActiveEndpoints(String ownerId)
getActiveEndpoints in interface MessageServiceMBeanownerId - component identifierpublic String[] getActiveConsumingEndpoints(String ownerId)
getActiveConsumingEndpoints in interface MessageServiceMBeanownerId - component identifierpublic String getDescriptor(String service, String endpoint)
getDescriptor in interface MessageServiceMBeanservice - string representation of service QNameendpoint - endpoint namepublic void dumpState()
dumpState in interface MessageServiceMBeanpublic void addObserver(DeliveryChannel channel)
channel - - The Delivery Channel of the observer component.public void removeObserver(DeliveryChannel channel)
channel - public void enableStatistics()
enableStatistics in interface NMRStatisticspublic void disableStatistics()
disableStatistics in interface NMRStatisticspublic boolean areStatisticsEnabled()
public void zeroStatistics()
zeroStatistics in interface NMRStatisticspublic String[] getChannelNames()
getChannelNames in interface NMRStatisticspublic ChannelStatistics getChannelStatistics(String name)
getChannelStatistics in interface NMRStatisticspublic String[] getEndpointNames()
getEndpointNames in interface NMRStatisticspublic String[] getConsumingEndpointNames()
getConsumingEndpointNames in interface NMRStatisticspublic EndpointStatistics getEndpointStatistics(String name)
getEndpointStatistics in interface NMRStatisticspublic CompositeData getStatistics()
getStatistics in interface NMRStatisticsCopyright © 2011-2016 OpenESB Community. All Rights Reserved.