Java Doc for MessageService.java in  » ESB » open-esb » com » sun » jbi » messaging » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » open esb » com.sun.jbi.messaging 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.management.system.ModelSystemService
      com.sun.jbi.messaging.MessageService

MessageService
public class MessageService extends com.sun.jbi.management.system.ModelSystemService implements com.sun.jbi.ServiceLifecycle,com.sun.jbi.management.system.MessageServiceMBean,NMRStatistics(Code)
Entry point to NMS for framework and management code.
author:
   Sun Microsystems, Inc.


Field Summary
 LinkedListmResources
     XAResources private to JBI Components.

Constructor Summary
public  MessageService()
     Create a new instance of the NMS.

Method Summary
public  DeliveryChannelImplactivateChannel(String componentId, ClassLoader classLoader)
     Create a new delivery channel.
 voidaddChannel(DeliveryChannelImpl channel)
     Adds a channel to the NMS routing table.
public synchronized  voidaddObserver(DeliveryChannel channel)
    
public  voidaddXAResource(XAResource resource)
    
 voidaddressExchange(MessageExchangeProxy exchange, DeliveryChannelImpl channel)
    
public synchronized  booleanareStatisticsEnabled()
    
public synchronized  voiddisableStatistics()
    
 voiddoExchange(DeliveryChannelImpl channel, MessageExchangeProxy exchange)
     Perform the exchange operation.
 booleandoSynchExchange(DeliveryChannelImpl channel, MessageExchangeProxy exchange, long timeout)
     Perform the exchange operation.
public  voiddumpState()
     Dump the state of the MessageService to the log.
public synchronized  voidenableStatistics()
    
 StringgenerateNextId()
    
public  intgetActiveChannelCount()
     Returns the total number of DeliveryChannels that have been activated in the NMR.
public  String[]getActiveChannels()
     Returns the identifiers of all the active channels.
public  String[]getActiveConsumingEndpoints()
     Returns a list of active consuming endpoints in the NMR.
public  String[]getActiveConsumingEndpoints(String ownerId)
     Identical to getActiveEndpoints(), but list is limited to endpoints registered by the specified component.
public  intgetActiveEndpointCount()
     Returns a list of component IDs corresponding to active channels in the NMR.
public  String[]getActiveEndpoints()
     Returns a list of active endpoints in the NMR.
public  String[]getActiveEndpoints(String ownerId)
     Identical to getActiveEndpoints(), but list is limited to endpoints registered by the specified component.
 DeliveryChannelImplgetChannel(String channelId)
     Retrieves a channel based on it's ID from the NMS routing table.
public  String[]getChannelNames()
    
public  ChannelStatisticsgetChannelStatistics(String name)
    
public  ConnectionManagergetConnectionManager()
     Get a reference to the NMR ConnectionManager.
public  String[]getConsumingEndpointNames()
    
public  StringgetDescriptor(String service, String endpoint)
     Provides metadata query facility for endpoints registered with the NMR.
public  String[]getEndpointNames()
    
public  EndpointStatisticsgetEndpointStatistics(String name)
    
public  CompositeDatagetStatistics()
    
 javax.transaction.TransactionManagergetTransactionManager()
    
public  javax.transaction.xa.XAResource[]getXAResources()
    
public  voidinitService(EnvironmentContext ctx)
     Init our environment.
 booleanisExchangeOkay(MessageExchange me)
    
 RegisteredEndpointmatchConsumerAndProvider(String consumerId, RegisteredEndpoint[] endpoints, MessageExchangeProxy exchange)
     Make sure that consumer and provider are cool with exchange.
public  voidpurgeXAResources()
    
 DocumentqueryDescriptor(ServiceEndpoint ref)
     Facilitates intercomponent meta data queries.
 voidremoveChannel(String channelId)
     Removes a channel from the NMS routing table.
public synchronized  voidremoveObserver(DeliveryChannel channel)
    
 DynamicEndpointresolveEndpointReference(org.w3c.dom.DocumentFragment reference)
    
 voidsetComponentManager(ComponentManager compMgr)
     Convenience method used in unit tests.
 voidsetEndpointListener(EndpointListener listener)
    
 voidsetExchangeIdGenerator(ExchangeIdGenerator generator)
    
 voidsetTimeoutListener(DeliveryChannel dc, TimeoutListener timeout)
    
 voidsetTransactionManager(javax.transaction.TransactionManager tm)
     Set the TransactionManager.
public  voidstartService()
     Start the NMS.
 booleanstatisticsEnabled()
    
public  voidstopService()
     Stop the NMS.
public  StringtoString()
    
 voidupdateStatistics(MessageExchangeProxy mep)
    
public synchronized  voidzeroStatistics()
    

Field Detail
mResources
LinkedList mResources(Code)
XAResources private to JBI Components.




Constructor Detail
MessageService
public MessageService()(Code)
Create a new instance of the NMS.




Method Detail
activateChannel
public DeliveryChannelImpl activateChannel(String componentId, ClassLoader classLoader) throws javax.jbi.messaging.MessagingException(Code)
Create a new delivery channel. If the channel has already been created, this method throws an exception.
Parameters:
  componentId - component id
Parameters:
  classLoader - class loader for component
throws:
  javax.jbi.messaging.MessagingException - attempt to activate duplicate channel.



addChannel
void addChannel(DeliveryChannelImpl channel)(Code)
Adds a channel to the NMS routing table.



addObserver
public synchronized void addObserver(DeliveryChannel channel)(Code)
Add a component as an observer of the NMR
Parameters:
  channel - - The Delivery Channel of the observer component.



addXAResource
public void addXAResource(XAResource resource)(Code)



addressExchange
void addressExchange(MessageExchangeProxy exchange, DeliveryChannelImpl channel) throws javax.jbi.messaging.MessagingException(Code)



areStatisticsEnabled
public synchronized boolean areStatisticsEnabled()(Code)



disableStatistics
public synchronized void disableStatistics()(Code)



doExchange
void doExchange(DeliveryChannelImpl channel, MessageExchangeProxy exchange) throws javax.jbi.messaging.MessagingException(Code)
Perform the exchange operation.



doSynchExchange
boolean doSynchExchange(DeliveryChannelImpl channel, MessageExchangeProxy exchange, long timeout) throws javax.jbi.messaging.MessagingException(Code)
Perform the exchange operation.



dumpState
public void dumpState()(Code)
Dump the state of the MessageService to the log.



enableStatistics
public synchronized void enableStatistics()(Code)



generateNextId
String generateNextId()(Code)



getActiveChannelCount
public int getActiveChannelCount()(Code)
Returns the total number of DeliveryChannels that have been activated in the NMR. number of active DeliveryChannels



getActiveChannels
public String[] getActiveChannels()(Code)
Returns the identifiers of all the active channels. names of all the active channels.



getActiveConsumingEndpoints
public String[] getActiveConsumingEndpoints()(Code)
Returns a list of active consuming endpoints in the NMR. list of activated consuming endpoints



getActiveConsumingEndpoints
public String[] getActiveConsumingEndpoints(String ownerId)(Code)
Identical to getActiveEndpoints(), but list is limited to endpoints registered by the specified component.
Parameters:
  ownerId - component identifier list of activated endpoints



getActiveEndpointCount
public int getActiveEndpointCount()(Code)
Returns a list of component IDs corresponding to active channels in the NMR. list of component IDs



getActiveEndpoints
public String[] getActiveEndpoints()(Code)
Returns a list of active endpoints in the NMR. list of activated endpoints



getActiveEndpoints
public String[] getActiveEndpoints(String ownerId)(Code)
Identical to getActiveEndpoints(), but list is limited to endpoints registered by the specified component.
Parameters:
  ownerId - component identifier list of activated endpoints



getChannel
DeliveryChannelImpl getChannel(String channelId)(Code)
Retrieves a channel based on it's ID from the NMS routing table.



getChannelNames
public String[] getChannelNames()(Code)



getChannelStatistics
public ChannelStatistics getChannelStatistics(String name)(Code)



getConnectionManager
public ConnectionManager getConnectionManager()(Code)
Get a reference to the NMR ConnectionManager. instance of ConnectionManager.



getConsumingEndpointNames
public String[] getConsumingEndpointNames()(Code)



getDescriptor
public String getDescriptor(String service, String endpoint)(Code)
Provides metadata query facility for endpoints registered with the NMR. This method returns the contents of an XML descriptor as a string.
Parameters:
  service - string representation of service QName
Parameters:
  endpoint - endpoint name XML descriptor as string



getEndpointNames
public String[] getEndpointNames()(Code)



getEndpointStatistics
public EndpointStatistics getEndpointStatistics(String name)(Code)



getStatistics
public CompositeData getStatistics()(Code)



getTransactionManager
javax.transaction.TransactionManager getTransactionManager()(Code)
Get the TransactionManager



getXAResources
public javax.transaction.xa.XAResource[] getXAResources()(Code)



initService
public void initService(EnvironmentContext ctx) throws javax.jbi.JBIException(Code)
Init our environment.



isExchangeOkay
boolean isExchangeOkay(MessageExchange me)(Code)



matchConsumerAndProvider
RegisteredEndpoint matchConsumerAndProvider(String consumerId, RegisteredEndpoint[] endpoints, MessageExchangeProxy exchange) throws javax.jbi.messaging.MessagingException(Code)
Make sure that consumer and provider are cool with exchange.



purgeXAResources
public void purgeXAResources()(Code)



queryDescriptor
Document queryDescriptor(ServiceEndpoint ref)(Code)
Facilitates intercomponent meta data queries.



removeChannel
void removeChannel(String channelId)(Code)
Removes a channel from the NMS routing table.



removeObserver
public synchronized void removeObserver(DeliveryChannel channel)(Code)
Remove a component as an observer of the NMR
Parameters:
  channel -



resolveEndpointReference
DynamicEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment reference)(Code)



setComponentManager
void setComponentManager(ComponentManager compMgr)(Code)
Convenience method used in unit tests.



setEndpointListener
void setEndpointListener(EndpointListener listener)(Code)



setExchangeIdGenerator
void setExchangeIdGenerator(ExchangeIdGenerator generator)(Code)



setTimeoutListener
void setTimeoutListener(DeliveryChannel dc, TimeoutListener timeout)(Code)



setTransactionManager
void setTransactionManager(javax.transaction.TransactionManager tm)(Code)
Set the TransactionManager. Used by the junit test harness to bypass using EnvironmentContext (which is not available.)



startService
public void startService() throws javax.jbi.JBIException(Code)
Start the NMS.



statisticsEnabled
boolean statisticsEnabled()(Code)



stopService
public void stopService() throws javax.jbi.JBIException(Code)
Stop the NMS.



toString
public String toString()(Code)



updateStatistics
void updateStatistics(MessageExchangeProxy mep)(Code)



zeroStatistics
public synchronized void zeroStatistics()(Code)



Fields inherited from com.sun.jbi.management.system.ModelSystemService
protected ObjectName mAdminServiceMBeanName(Code)(Java Doc)
protected ObjectName mConfigMBeanName(Code)(Java Doc)
protected ObjectName mConfigServiceMBeanName(Code)(Java Doc)
protected ObjectName mDeployServiceMBeanName(Code)(Java Doc)
protected String mDisplayName(Code)(Java Doc)
protected com.sun.jbi.EnvironmentContext mEnv(Code)(Java Doc)
protected MBeanSet mInitialMBeansmStartMBeans(Code)(Java Doc)
protected ObjectName mInstallServiceMBeanName(Code)(Java Doc)
protected JbiNameInfo mJbiNameInfo(Code)(Java Doc)
protected ObjectName mLifeCycleMBeanName(Code)(Java Doc)
protected Logger mLogger(Code)(Java Doc)
protected LoggerMBean mLoggerImpl(Code)(Java Doc)
protected ObjectName mLoggerMBeanName(Code)(Java Doc)
protected ObjectName mLoggingServiceMBeanName(Code)(Java Doc)
protected com.sun.jbi.management.MBeanNames mMBeanNames(Code)(Java Doc)
protected MBeanServer mMBeanServer(Code)(Java Doc)
protected ObjectName mMessageServiceMBeanName(Code)(Java Doc)
final protected String mModelName(Code)(Java Doc)
protected ObjectName mStatisticsMBeanName(Code)(Java Doc)
protected StringTranslator mTranslator(Code)(Java Doc)

Methods inherited from com.sun.jbi.management.system.ModelSystemService
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws java.lang.IllegalArgumentException(Code)(Java Doc)
protected void bootstrap()(Code)(Java Doc)
protected com.sun.jbi.ComponentQuery getComponentQuery()(Code)(Java Doc)
public String getCurrentState()(Code)(Java Doc)
public NotificationBroadcasterSupport getNotificationBroadcaster()(Code)(Java Doc)
public MBeanNotificationInfo[] getNotificationInfo()(Code)(Java Doc)
protected Registry getRegistry()(Code)(Java Doc)
protected void initModelSystemService(com.sun.jbi.EnvironmentContext anEnv, JbiNameInfo aJbiName)(Code)(Java Doc)
protected void initModelSystemService(com.sun.jbi.EnvironmentContext anEnv, Logger aLogger, JbiNameInfo aJbiName)(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc)
public void shutDown() throws javax.jbi.JBIException(Code)(Java Doc)
public void start() throws javax.jbi.JBIException(Code)(Java Doc)
public void stop() throws javax.jbi.JBIException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.