Java Doc for RpcDispatcher.java in  » Net » JGroups-2.4.1-sp3 » org » jgroups » blocks » 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 » Net » JGroups 2.4.1 sp3 » org.jgroups.blocks 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jgroups.blocks.MessageDispatcher
      org.jgroups.blocks.RpcDispatcher

RpcDispatcher
public class RpcDispatcher extends MessageDispatcher implements ChannelListener(Code)
This class allows a programmer to invoke remote methods in all (or single) group members and optionally wait for the return value(s). An application will typically create a channel and layer the RpcDispatcher building block on top of it, which allows it to dispatch remote methods (client role) and at the same time be called by other members (server role). This class is derived from MessageDispatcher. Is the equivalent of RpcProtocol on the application rather than protocol level.
author:
   Bela Ban

Inner Class :public interface Marshaller

Field Summary
final protected  ListadditionalChannelListeners
    
protected  MethodLookupmethod_lookup
    
protected  Marshallerreq_marshaller
    
protected  Marshallerrsp_marshaller
    
protected  Objectserver_obj
    

Constructor Summary
public  RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj)
    
public  RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj, boolean deadlock_detection)
    
public  RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj, boolean deadlock_detection, boolean concurrent_processing)
    
public  RpcDispatcher(PullPushAdapter adapter, Serializable id, MessageListener l, MembershipListener l2, Object server_obj)
    

Method Summary
public  booleanaddChannelListener(ChannelListener l)
     Add a new channel listener to be notified on the channel's state change.
public  ObjectcallRemoteMethod(Address dest, String method_name, Object[] args, Class[] types, int mode, long timeout)
    
public  ObjectcallRemoteMethod(Address dest, String method_name, Object[] args, String[] signature, int mode, long timeout)
    
public  ObjectcallRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout)
    
public  RspListcallRemoteMethods(Vector dests, String method_name, Object[] args, Class[] types, int mode, long timeout)
    
public  RspListcallRemoteMethods(Vector dests, String method_name, Object[] args, Class[] types, int mode, long timeout, boolean use_anycasting)
    
public  RspListcallRemoteMethods(Vector dests, String method_name, Object[] args, String[] signature, int mode, long timeout)
    
public  RspListcallRemoteMethods(Vector dests, String method_name, Object[] args, String[] signature, int mode, long timeout, boolean use_anycasting)
    
public  RspListcallRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout)
    
public  RspListcallRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout, boolean use_anycasting)
    
public  RspListcastMessage(Vector dests, Message msg, int mode, long timeout)
    
public  voidchannelClosed(Channel channel)
    
public  voidchannelConnected(Channel channel)
    
public  voidchannelDisconnected(Channel channel)
    
public  voidchannelReconnected(Address new_addr)
    
public  voidchannelShunned()
    
protected  voidcorrelatorStarted()
    
public  MarshallergetMarshaller()
    
public  MethodLookupgetMethodLookup()
    
public  StringgetName()
    
public  MarshallergetRequestMarshaller()
    
public  MarshallergetResponseMarshaller()
    
public  ObjectgetServerObject()
    
public  Objecthandle(Message req)
     Message contains MethodCall.
public  booleanremoveChannelListener(ChannelListener l)
    
public  ObjectsendMessage(Message msg, int mode, long timeout)
    
public  voidsetMarshaller(Marshaller m)
    
public  voidsetMethodLookup(MethodLookup method_lookup)
    
public  voidsetRequestMarshaller(Marshaller m)
    
public  voidsetResponseMarshaller(Marshaller m)
    
public  voidsetServerObject(Object server_obj)
    

Field Detail
additionalChannelListeners
final protected List additionalChannelListeners(Code)



method_lookup
protected MethodLookup method_lookup(Code)



req_marshaller
protected Marshaller req_marshaller(Code)
Marshaller to marshall requests at the caller and unmarshal requests at the receiver(s)



rsp_marshaller
protected Marshaller rsp_marshaller(Code)
Marshaller to marshal responses at the receiver(s) and unmarshal responses at the caller



server_obj
protected Object server_obj(Code)




Constructor Detail
RpcDispatcher
public RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj)(Code)



RpcDispatcher
public RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj, boolean deadlock_detection)(Code)



RpcDispatcher
public RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, Object server_obj, boolean deadlock_detection, boolean concurrent_processing)(Code)



RpcDispatcher
public RpcDispatcher(PullPushAdapter adapter, Serializable id, MessageListener l, MembershipListener l2, Object server_obj)(Code)




Method Detail
addChannelListener
public boolean addChannelListener(ChannelListener l)(Code)
Add a new channel listener to be notified on the channel's state change. true if the listener was added or false if the listener was already in the list.



callRemoteMethod
public Object callRemoteMethod(Address dest, String method_name, Object[] args, Class[] types, int mode, long timeout) throws Throwable(Code)



callRemoteMethod
public Object callRemoteMethod(Address dest, String method_name, Object[] args, String[] signature, int mode, long timeout) throws Throwable(Code)



callRemoteMethod
public Object callRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout) throws Throwable(Code)



callRemoteMethods
public RspList callRemoteMethods(Vector dests, String method_name, Object[] args, Class[] types, int mode, long timeout)(Code)



callRemoteMethods
public RspList callRemoteMethods(Vector dests, String method_name, Object[] args, Class[] types, int mode, long timeout, boolean use_anycasting)(Code)



callRemoteMethods
public RspList callRemoteMethods(Vector dests, String method_name, Object[] args, String[] signature, int mode, long timeout)(Code)



callRemoteMethods
public RspList callRemoteMethods(Vector dests, String method_name, Object[] args, String[] signature, int mode, long timeout, boolean use_anycasting)(Code)



callRemoteMethods
public RspList callRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout)(Code)



callRemoteMethods
public RspList callRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout, boolean use_anycasting)(Code)



castMessage
public RspList castMessage(Vector dests, Message msg, int mode, long timeout)(Code)



channelClosed
public void channelClosed(Channel channel)(Code)



channelConnected
public void channelConnected(Channel channel)(Code)



channelDisconnected
public void channelDisconnected(Channel channel)(Code)



channelReconnected
public void channelReconnected(Address new_addr)(Code)



channelShunned
public void channelShunned()(Code)



correlatorStarted
protected void correlatorStarted()(Code)



getMarshaller
public Marshaller getMarshaller()(Code)



getMethodLookup
public MethodLookup getMethodLookup()(Code)



getName
public String getName()(Code)



getRequestMarshaller
public Marshaller getRequestMarshaller()(Code)



getResponseMarshaller
public Marshaller getResponseMarshaller()(Code)



getServerObject
public Object getServerObject()(Code)



handle
public Object handle(Message req)(Code)
Message contains MethodCall. Execute it against *this* object and return result. Use MethodCall.invoke() to do this. Return result.



removeChannelListener
public boolean removeChannelListener(ChannelListener l)(Code)
true if the channel was removed indeed.



sendMessage
public Object sendMessage(Message msg, int mode, long timeout) throws TimeoutException, SuspectedException(Code)



setMarshaller
public void setMarshaller(Marshaller m)(Code)



setMethodLookup
public void setMethodLookup(MethodLookup method_lookup)(Code)



setRequestMarshaller
public void setRequestMarshaller(Marshaller m)(Code)



setResponseMarshaller
public void setResponseMarshaller(Marshaller m)(Code)



setServerObject
public void setServerObject(Object server_obj)(Code)



Fields inherited from org.jgroups.blocks.MessageDispatcher
protected PullPushAdapter adapter(Code)(Java Doc)
protected Channel channel(Code)(Java Doc)
protected boolean concurrent_processing(Code)(Java Doc)
protected RequestCorrelator corr(Code)(Java Doc)
protected boolean deadlock_detection(Code)(Java Doc)
protected PullPushHandler handler(Code)(Java Doc)
protected Serializable id(Code)(Java Doc)
protected Address local_addr(Code)(Java Doc)
final protected Log log(Code)(Java Doc)
final protected Collection members(Code)(Java Doc)
protected MembershipListener membership_listener(Code)(Java Doc)
protected MessageListener msg_listener(Code)(Java Doc)
protected ProtocolAdapter prot_adapter(Code)(Java Doc)
protected RequestHandler req_handler(Code)(Java Doc)
protected TransportAdapter transport_adapter(Code)(Java Doc)

Methods inherited from org.jgroups.blocks.MessageDispatcher
public RspList castMessage(Vector dests, Message msg, int mode, long timeout)(Code)(Java Doc)
public RspList castMessage(Vector dests, Message msg, int mode, long timeout, boolean use_anycasting)(Code)(Java Doc)
public void castMessage(Vector dests, long req_id, Message msg, RspCollector coll)(Code)(Java Doc)
protected void correlatorStarted()(Code)(Java Doc)
public void done(long req_id)(Code)(Java Doc)
public Channel getChannel()(Code)(Java Doc)
protected Collection getMembers()(Code)(Java Doc)
public MessageListener getMessageListener()(Code)(Java Doc)
public Object handle(Message msg)(Code)(Java Doc)
public void send(Message msg) throws ChannelNotConnectedException, ChannelClosedException(Code)(Java Doc)
public Object sendMessage(Message msg, int mode, long timeout) throws TimeoutException, SuspectedException(Code)(Java Doc)
public void setConcurrentProcessing(boolean flag)(Code)(Java Doc)
public void setDeadlockDetection(boolean flag)(Code)(Java Doc)
final public void setMembershipListener(MembershipListener l)(Code)(Java Doc)
final public void setMessageListener(MessageListener l)(Code)(Java Doc)
final public void setRequestHandler(RequestHandler rh)(Code)(Java Doc)
final public void start()(Code)(Java Doc)
public void stop()(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.