Java Doc for NMRProcessor.java in  » ESB » open-esb » com » sun » jbi » binding » proxy » 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.binding.proxy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.binding.proxy.NMRProcessor

NMRProcessor
class NMRProcessor implements java.lang.Runnable,com.sun.jbi.messaging.EndpointListener,com.sun.jbi.messaging.TimeoutListener(Code)
Runnable class that implements the NMR receiver. All traffic from the NMR that is associated with endpoints for which the ProxyBinding is acting as a proxy, are processed here. Also, the ProxyBinding exposes a handful of services used locally and remotely, and these are handled here. The basic flow is: Decide if message is for us or for a proxy. If the exchange is for us, process it. Else, lookup the instance that hosts the service. Send the exchange to the remote instance that is hosting the service. Remember the exchange if new, forget the exchange is this is the last send.
author:
   Sun Microsystems, Inc


Field Summary
final static  StringACTIVATE
     Operation names.
final static  StringCLASSLOADER
    
final static  StringDEACTIVATE
    
final static  StringENDPOINTNAME
    
final static  StringEXCHANGE
    
final static  StringEXCHANGEID
     Property names used in above operations.
final static  StringEXCHANGEOKAY
    
final static  StringINSTANCENAME
    
final static  StringISEXCHANGEOKAY
    
final static  StringISEXCHANGEOKAY2
    
final static  StringRESOLVE_ENDPOINT
    
final static  StringSERVICENAME
    
final static  StringSERVICE_DESCRIPTION
    
final static  StringTIMEOUT
    
final static  StringTIMEOUTCHECK
    
 intmOperationsReceived
    
 intmOperationsSent
    

Constructor Summary
 NMRProcessor(ProxyBinding proxyBinding)
    

Method Summary
public  voidactivate(DeliveryChannel channel, ServiceEndpoint endpoint)
     An endpoint is being activated on the given channel.
public  booleancheckTimeout(DeliveryChannel channel, javax.jbi.messaging.MessageExchange exchange)
     A message exchange has timed out on a sendSynch operation.
public  voiddeactivate(DeliveryChannel channel, ServiceEndpoint endpoint)
     An endpoint is being deactivated on the given channel.
 voiddoActivate(MessageExchange me)
    
 voiddoDeactivate(MessageExchange me)
    
 voiddoIsExchangeOkay(MessageExchange me)
    
 voiddoIsExchangeOkay2(MessageExchange me)
    
 voiddoResolveEndpoint(MessageExchange me)
    
 voiddoServiceDescription(MessageExchange me)
    
 voiddoTimeout(MessageExchange me)
    
public  DocumentgetDescription(ServiceEndpoint endpoint)
     A service description has been requested for a remote service.
 voidhandleError(MessageExchange me, Exception e)
    
 booleanisExchangeOkay(ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
     A provider of a service needs to be queried about the suitability of the consumer request.
 voidlogExceptionInfo(String reason, Throwable t)
    
 voidprocessProxyServiceRequest(MessageExchange me)
     Handle any operations that are targeted at the service exposed by the ProxyBinding.
 ServiceEndpointresolveEndpointReference(DocumentFragment document)
     An endpoint reference needs to be resolved.
public  voidrun()
    
 voidstop()
    
 voidwriteIsMEPOk(ExchangeEntry ee)
    
 voidwriteMEP(ExchangeEntry ee)
    
 voidwriteMEPOk(ExchangeEntry ee, boolean okay)
    

Field Detail
ACTIVATE
final static String ACTIVATE(Code)
Operation names.



CLASSLOADER
final static String CLASSLOADER(Code)



DEACTIVATE
final static String DEACTIVATE(Code)



ENDPOINTNAME
final static String ENDPOINTNAME(Code)



EXCHANGE
final static String EXCHANGE(Code)



EXCHANGEID
final static String EXCHANGEID(Code)
Property names used in above operations.



EXCHANGEOKAY
final static String EXCHANGEOKAY(Code)



INSTANCENAME
final static String INSTANCENAME(Code)



ISEXCHANGEOKAY
final static String ISEXCHANGEOKAY(Code)



ISEXCHANGEOKAY2
final static String ISEXCHANGEOKAY2(Code)



RESOLVE_ENDPOINT
final static String RESOLVE_ENDPOINT(Code)



SERVICENAME
final static String SERVICENAME(Code)



SERVICE_DESCRIPTION
final static String SERVICE_DESCRIPTION(Code)



TIMEOUT
final static String TIMEOUT(Code)



TIMEOUTCHECK
final static String TIMEOUTCHECK(Code)



mOperationsReceived
int mOperationsReceived(Code)



mOperationsSent
int mOperationsSent(Code)




Constructor Detail
NMRProcessor
NMRProcessor(ProxyBinding proxyBinding)(Code)




Method Detail
activate
public void activate(DeliveryChannel channel, ServiceEndpoint endpoint)(Code)
An endpoint is being activated on the given channel. We process this by sending a InOnly message exchange to the ProxyBinding (remember we are running in the context of a component that is activating an endpoint) with the endpoint information.
Parameters:
  channel - that is activating an endpoint.
Parameters:
  endpoint - that is being activated.



checkTimeout
public boolean checkTimeout(DeliveryChannel channel, javax.jbi.messaging.MessageExchange exchange)(Code)
A message exchange has timed out on a sendSynch operation. We use an InOnly message exchange to convey the request to the ProxyBinding (remember we are running in the context of a component that is waiting in sendSynch().)
Parameters:
  channel - that is performing a timeout on an endpoint.
Parameters:
  endpoint - that is being timed out.



deactivate
public void deactivate(DeliveryChannel channel, ServiceEndpoint endpoint)(Code)
An endpoint is being deactivated on the given channel. We process this by sending a InOnly message exchange to the ProxyBinding (remember we are running in the context of a component that is activating an endpoint) with the endpoint information.
Parameters:
  channel - that is deactivating an endpoint.
Parameters:
  endpoint - that is being deactivated.



doActivate
void doActivate(MessageExchange me)(Code)



doDeactivate
void doDeactivate(MessageExchange me)(Code)



doIsExchangeOkay
void doIsExchangeOkay(MessageExchange me)(Code)



doIsExchangeOkay2
void doIsExchangeOkay2(MessageExchange me)(Code)



doResolveEndpoint
void doResolveEndpoint(MessageExchange me)(Code)



doServiceDescription
void doServiceDescription(MessageExchange me)(Code)



doTimeout
void doTimeout(MessageExchange me)(Code)



getDescription
public Document getDescription(ServiceEndpoint endpoint)(Code)
A service description has been requested for a remote service. We process this by sending a InOnly message exchange to the ProxyBinding (remember we are running in the context of a component that asking for the service description) with the endpoint information.
Parameters:
  endpoint - that is being queried for its description



handleError
void handleError(MessageExchange me, Exception e)(Code)



isExchangeOkay
boolean isExchangeOkay(ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)(Code)
A provider of a service needs to be queried about the suitability of the consumer request. We process this by sending a InOnly message exchange to the remote ProxyBinding (remember we are running in the context of a component that is attempting to perform a send to the provider)
Parameters:
  endpoint - that is being queried for its description



logExceptionInfo
void logExceptionInfo(String reason, Throwable t)(Code)



processProxyServiceRequest
void processProxyServiceRequest(MessageExchange me)(Code)
Handle any operations that are targeted at the service exposed by the ProxyBinding.
Parameters:
  me - containing the messageExchange that should be handled.



resolveEndpointReference
ServiceEndpoint resolveEndpointReference(DocumentFragment document)(Code)
An endpoint reference needs to be resolved. We send this to each known instance and wait for an answer. We process this by sending a InOnly message exchange to the remote ProxyBinding (remember we are running in the context of a component that is asking for the endpoint resolution) with the endpoint information.
Parameters:
  endpoint - that is being queried for its description



run
public void run()(Code)



stop
void stop()(Code)



writeIsMEPOk
void writeIsMEPOk(ExchangeEntry ee) throws javax.jbi.messaging.MessagingException(Code)



writeMEP
void writeMEP(ExchangeEntry ee) throws javax.jbi.messaging.MessagingException(Code)



writeMEPOk
void writeMEPOk(ExchangeEntry ee, boolean okay) throws javax.jbi.messaging.MessagingException(Code)



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.