org.jgroups.protocols

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 
org.jgroups.protocols
Provides implementations of transport protocols which are responsible for sending and receiving messages to/from the network.
Java Source File NameTypeComment
AUTH.javaClass
AuthHeader.javaClass
AUTHTest.javaClass
AUTOCONF.javaClass Senses the network configuration when it is initialized (in init()) and sends a CONFIG event up and down the stack.
BasicTCP.javaClass
BSH.javaClass Beanshell (www.beanshell.org) interpreter class.
CAUSAL.javaClass

Implements casual ordering layer using vector clocks.

Causal protocol layer guarantees that if message m0 multicasted by a process group member p0 causes process group member p1 to multicast message p1 then all other remaining process group members in a current view will receive messages in order m0 followed by m1.

First time encountered, causal order seems very similar to FIFO order but there is an important distinction.

ClientGmsImpl.javaClass Client part of GMS.
COMPRESS.javaClass Compresses the payload of a message.
CoordGmsImpl.javaClass
DEADLOCK.javaClass
DELAY.javaClass Delays incoming/outgoing messages by a random number of milliseconds (range between 0 and n where n is determined by the user).
Digest.javaClass Message digest, collecting the highest sequence number seen so far for each member, plus the messages that have higher seqnos than the ones given.
DISCARD.javaClass Discards up or down messages based on a percentage; e.g., setting property 'up' to 0.1 causes 10% of all up messages to be discarded.
Discovery.javaClass The Discovery protocol layer retrieves the initial membership (used by the GMS when started by sending event FIND_INITIAL_MBRS down the stack).
DUMMY.javaClass
DUMMY_TP.javaClass Dummy transport, returns a fake local address and responds to CONNECT with CONNECT_OK.
ENCRYPT.javaClass ENCRYPT layer.
ENCRYPT14KeystoreTest.javaClass
ENCRYPTAsymmetricTest.javaClass
EXAMPLE.javaClass
FC.javaClass Simple flow control protocol based on a credit system.
FD.javaClass Failure detection based on simple heartbeat protocol.
FD_ICMP.javaClass Protocol which uses InetAddress.isReachable() to check whether a given host is up or not, taking 1 argument; the host name of the host to be pinged.
FD_PID.javaClass Process-ID based FD protocol.
FD_PING.javaClass Protocol which uses an executable (e.g.
FD_PROB.javaClass Probabilistic failure detection protocol based on "A Gossip-Style Failure Detection Service" by Renesse, Minsky and Hayden.

Each member maintains a list of all other members: for each member P, 2 data are maintained, a heartbeat counter and the time of the last increment of the counter.

FD_SIMPLE.javaClass Simple failure detection protocol.
FD_SOCK.javaClass Failure detection protocol based on sockets.
FLOWCONTROL.javaClass
FLOW_CONTROL.javaClass FLOW_CONTROL provides end-end congestion control and flow control. Attempts to maximize through put, by minimizing the possible block times(Forward flow control).
FLUSH.javaClass The task of the FLUSH protocol is to flush all pending messages out of the system.
FlushRsp.javaClass
FRAG.javaClass Fragmentation layer.
FRAG2.javaClass Fragmentation layer.
FRAG2_Test.javaClass
FragHeader.javaClass
FRAG_Test.javaClass
GMS.javaClass Group membership protocol.
GmsImpl.javaClass
HDRS.javaClass Example of a protocol layer.
HTOTAL.javaClass Implementation of UTO-TCP as designed by EPFL.
JMS.javaClass Implementation of the transport protocol using the Java Message Service (JMS). This implementation depends on the JMS server that will distribute messages published to the specific topic to all topic subscribers.

Protocol parameters are:

  • topicName - (required), full JNDI name of the topic to be used for message publishing;
  • cf - (optional), full JNDI name of the topic connection factory that will create topic connection, default value is "ConnectionFactory";
  • jndiCtx - (optional), value of the javax.naming.Context.INITIAL_CONTEXT_FACTORY property; you can specify it as the JVM system property -Djava.naming.factory.initial=factory.class.Name;
  • providerURL - (optional), value of the javax.naming.Context.PROVIDER_URL property; you can specify it as the JVM system property -Djava.naming.provider.url=some_url
  • ttl - (required), time to live in milliseconds.
LOOPBACK.javaClass Makes copies of outgoing messages, swaps sender and receiver and sends the message back up the stack.
LOSS.javaClass Example of a protocol layer.
MERGE.javaClass Simple and stupid MERGE protocol (does not take into account state transfer). Periodically mcasts a HELLO message with its own address.
MERGE2.javaClass Protocol to discover subgroups; e.g., existing due to a network partition (that healed).
MERGE3.javaClass Protocol to discover subgroups; e.g., existing due to a network partition (that healed).
MERGEFAST.javaClass The coordinator attaches a small header to each (or every nth) message.
MessageProtocolEXAMPLE.javaClass
MPING.javaClass Uses its own IP multicast socket to send and receive discovery requests/responses.
NAKACK.javaClass Negative AcKnowledgement layer (NAKs), paired with positive ACKs.
NakAckHeader.javaClass
ParticipantGmsImpl.javaClass
PARTITIONER.javaClass This layer can be put on top of the bottommost layer and is useful to simulate partitions.
PERF.javaClass Measures time taken by each protocol to process a message.
PerfHeader.javaClass Inserted by PERF into each message.
PERF_TP.javaClass
PIGGYBACK.javaClass Combines multiple messages into a single large one.
PING.javaClass The PING protocol layer retrieves the initial membership (used by the GMS when started by sending event FIND_INITIAL_MBRS down the stack).
PingHeader.javaClass
PingRsp.javaClass
PingSender.javaClass
PingWaiter.javaClass
PRINTMETHODS.javaClass
PRINTOBJS.javaClass
QUEUE.javaClass Queuing layer.
RpcProtocolEXAMPLE.javaClass
SEQUENCER.javaClass Implementation of total order protocol using a sequencer.
SHUFFLE.javaClass This layer shuffles upcoming messages, put it just above your bottom layer.
SIZE.javaClass Protocol which prints out the real size of a message.
SMACK.javaClass Simple Multicast ACK protocol.
STABLE.javaClass Computes the broadcast messages that are stable; i.e., that have been received by all members.
STATE_TRANSFER.javaClass
STATE_TRANSFER_Test.javaClass It's an attemp to setup Junit test case template for Protocol regression.
STATS.javaClass
TCP.javaClass TCP based protocol.
TCPGOSSIP.javaClass The TCPGOSSIP protocol layer retrieves the initial membership (used by the GMS when started by sending event FIND_INITIAL_MBRS down the stack). We do this by contacting one or more GossipRouters, which must be running at well-known addresses:ports.
TcpHeader.javaClass
TCPPING.javaClass The TCPPING protocol layer retrieves the initial membership in answer to the GMS's FIND_INITIAL_MBRS event.
TCP_NIO.javaClass
TOTAL.javaClass Implements the total ordering layer using a message sequencer

The protocol guarantees that all bcast sent messages will be delivered in the same order to all members.

TOTAL_OLD.javaClass class SavedMessages

Stores a set of messages along with their sequence id (assigned by the sequencer).

TOTAL_TOKEN.javaClass

Total order implementation based on The Totem Single-Ring Ordering and Membership Protocol.

However, this is an adaption of algorithm mentioned in the research paper above since we reuse our own membership protocol and failure detectors.

TP.javaClass Generic transport - specific implementations should extend this abstract class.
TpHeader.javaClass Generic transport header, used by TP.
TRACE.javaClass
TransportedVectorTime.javaClass
TUNNEL.javaClass Replacement for UDP.
TunnelHeader.javaClass
UDP.javaClass IP multicast transport based on UDP.
UdpHeader.javaClass
UDP_NIO.javaInterface
UNICAST.javaClass Reliable unicast layer.
VectorTime.javaClass
VERIFY_SUSPECT.javaClass Catches SUSPECT events traveling up the stack.
VIEW_ENFORCER.javaClass Used by a client until it becomes a member: all up messages are discarded until a VIEW_CHANGE is encountered.
VIEW_SYNC.javaClass Periodically sends the view to the group.
WANPING.javaClass Similar to TCPPING, except that the initial host list is specified as a list of logical pipe names.
WANPIPE.javaClass Logical point-to-point link.
WanPipeAddress.javaClass
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.