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


org.jgroups.protocols.Discovery
   org.jgroups.protocols.PING
      org.jgroups.protocols.MPING

MPING
public class MPING extends PING implements Runnable(Code)
Uses its own IP multicast socket to send and receive discovery requests/responses. Can be used in conjuntion with a non-UDP transport, e.g. TCP.

The discovery is assymetric: discovery requests are broadcast via the multicast socket, and received via the multicast socket by everyone in the group. However, the discovery responses are sent back via the regular transport (e.g. TCP) to the sender (discovery request contained sender's regular address, e.g. 192.168.0.2:7800).
author:
   Bela Ban
version:
   $Id: MPING.java,v 1.19.2.1 2007/04/27 08:03:51 belaban Exp $



Field Summary
 InetAddressbind_addr
    
 booleanbind_to_all_interfaces
    
 intip_ttl
    
 InetAddressmcast_addr
    
 intmcast_port
    
 MulticastSocketmcast_sock
    
final  ExposedByteArrayOutputStreamout_stream
     Pre-allocated byte stream.
 bytereceive_buf
    
 Threadreceiver
    


Method Summary
public  InetAddressgetBindAddr()
    
public  InetAddressgetMcastAddr()
    
public  intgetMcastPort()
    
public  StringgetName()
    
public  intgetTTL()
    
public  booleanisBindToAllInterfaces()
    
public  voidrun()
    
 voidsendMcastDiscoveryRequest(Message msg)
    
public  voidsetBindAddr(InetAddress bind_addr)
    
public  voidsetBindToAllInterfaces(boolean bind_to_all_interfaces)
    
public  voidsetMcastAddr(InetAddress mcast_addr)
    
public  voidsetMcastPort(int mcast_port)
    
public  booleansetProperties(Properties props)
    
public  voidsetTTL(int ip_ttl)
    
public  voidstart()
    
public  voidstop()
    
public  voidup(Event evt)
    

Field Detail
bind_addr
InetAddress bind_addr(Code)



bind_to_all_interfaces
boolean bind_to_all_interfaces(Code)



ip_ttl
int ip_ttl(Code)



mcast_addr
InetAddress mcast_addr(Code)



mcast_port
int mcast_port(Code)



mcast_sock
MulticastSocket mcast_sock(Code)



out_stream
final ExposedByteArrayOutputStream out_stream(Code)
Pre-allocated byte stream. Used for serializing datagram packets. Will grow as needed



receive_buf
byte receive_buf(Code)



receiver
Thread receiver(Code)





Method Detail
getBindAddr
public InetAddress getBindAddr()(Code)



getMcastAddr
public InetAddress getMcastAddr()(Code)



getMcastPort
public int getMcastPort()(Code)



getName
public String getName()(Code)



getTTL
public int getTTL()(Code)



isBindToAllInterfaces
public boolean isBindToAllInterfaces()(Code)



run
public void run()(Code)



sendMcastDiscoveryRequest
void sendMcastDiscoveryRequest(Message msg)(Code)



setBindAddr
public void setBindAddr(InetAddress bind_addr)(Code)



setBindToAllInterfaces
public void setBindToAllInterfaces(boolean bind_to_all_interfaces)(Code)



setMcastAddr
public void setMcastAddr(InetAddress mcast_addr)(Code)



setMcastPort
public void setMcastPort(int mcast_port)(Code)



setProperties
public boolean setProperties(Properties props)(Code)



setTTL
public void setTTL(int ip_ttl)(Code)



start
public void start() throws Exception(Code)



stop
public void stop()(Code)



up
public void up(Event evt)(Code)



Fields inherited from org.jgroups.protocols.PING
GossipClient client(Code)(Java Doc)
String gossip_host(Code)(Java Doc)
int gossip_port(Code)(Java Doc)
long gossip_refresh(Code)(Java Doc)
List initial_hosts(Code)(Java Doc)
final public static String name(Code)(Java Doc)
int port_range(Code)(Java Doc)

Methods inherited from org.jgroups.protocols.PING
public String getName()(Code)(Java Doc)
public void handleConnect()(Code)(Java Doc)
public void handleDisconnect()(Code)(Java Doc)
public void localAddressSet(Address addr)(Code)(Java Doc)
public void sendGetMembersRequest()(Code)(Java Doc)
void sendMcastDiscoveryRequest(Message discovery_request)(Code)(Java Doc)
public boolean setProperties(Properties props)(Code)(Java Doc)
public void stop()(Code)(Java Doc)

Fields inherited from org.jgroups.protocols.Discovery
String group_addr(Code)(Java Doc)
boolean is_server(Code)(Java Doc)
Address local_addr(Code)(Java Doc)
final Vector members(Code)(Java Doc)
int num_discovery_requests(Code)(Java Doc)
int num_initial_members(Code)(Java Doc)
int num_ping_requests(Code)(Java Doc)
PingWaiter ping_waiter(Code)(Java Doc)
long timeout(Code)(Java Doc)

Methods inherited from org.jgroups.protocols.Discovery
public void down(Event evt)(Code)(Java Doc)
public Vector findInitialMembers()(Code)(Java Doc)
public String findInitialMembersAsString()(Code)(Java Doc)
public int getNumInitialMembers()(Code)(Java Doc)
public int getNumPingRequests()(Code)(Java Doc)
public int getNumberOfDiscoveryRequestsSent()(Code)(Java Doc)
public long getTimeout()(Code)(Java Doc)
public void handleConnect()(Code)(Java Doc)
public void handleConnectOK()(Code)(Java Doc)
public void handleDisconnect()(Code)(Java Doc)
public void localAddressSet(Address addr)(Code)(Java Doc)
final protected View makeView(Vector mbrs)(Code)(Java Doc)
public Vector providedUpServices()(Code)(Java Doc)
public void resetStats()(Code)(Java Doc)
abstract public void sendGetMembersRequest()(Code)(Java Doc)
public void setNumInitialMembers(int num_initial_members)(Code)(Java Doc)
public void setNumPingRequests(int num_ping_requests)(Code)(Java Doc)
public boolean setProperties(Properties props)(Code)(Java Doc)
public void setTimeout(long timeout)(Code)(Java Doc)
public void start() throws Exception(Code)(Java Doc)
public void stop()(Code)(Java Doc)
public void up(Event evt)(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.