Java Doc for TOTAL_TOKEN.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.stack.RpcProtocol
   org.jgroups.protocols.TOTAL_TOKEN

TOTAL_TOKEN
public class TOTAL_TOKEN extends RpcProtocol (Code)

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. Somewhat different flow control mechanism is also implemented.

Token passing is done through reliable point-to-point udp channels provided by UNICAST layer. Process groups nodes members are organized in a logical ring.

Total token layer doesn't need NAKACK nor STABLE layer beneath it since it implements it's own retransmission and tracks stability of the messages from the information piggybacked on the token itself.

For the typical protocol stack configuration used, see org.jgroups.demos.TotalTokenDemo and total-token.xml configuration file provided with this distribution of JGroups.


author:
   Vladimir Blagojevic vladimir@cs.yorku.ca
version:
   $Revision: 1.14 $
See Also:   org.jgroups.protocols.ring.RingNodeFlowControl
See Also:   org.jgroups.protocols.ring.RingNode
See Also:   org.jgroups.protocols.ring.TcpRingNode
See Also:   org.jgroups.protocols.ring.UdpRingNode

Inner Class :public static class TotalTokenHeader extends Header
Inner Class :public static class RingTokenHeader extends Header

Field Summary
 intblockSendingBacklogThreshold
    
final  Objectblock_sending
    
 RingNodeFlowControlflowControl
    
 longhighestSeenSeq
    
volatile  booleanisRecoveryLeader
    
 longlastRoundTokensAru
    
 intlastRoundTransmitCountlastRoundRebroadcastCount
    
 SortedSetliveMembersInRecoverysuspects
    
 AddresslocalAddress
    
final  Objectmutex
    
 longmyAru
    
final  ListnewMessagesQueue
    
 UdpRingNodenode
    
final public static  Stringprot_name
    
 TreeMapreceivedMessagesQueue
    
 booleansenderBlocked
    
volatile  intsleepTime
    
volatile  intstate
    
final  ObjectthreadCoordinationMutex
    
final  booleanthreadDeliveringMessage
    
 booleantokenCirculating
    
final  booleantokenInStack
    
 booleantokenSeen
    
 intunblockSendingBacklogThreshold
    


Method Summary
public  longgetAllReceivedUpTo()
    
public  StringgetName()
    
public  IpAddressgetTokenReceiverAddress()
    
public  booleanhandleDownEvent(Event evt)
    
public  booleanhandleUpEvent(Event evt)
    
public  voidinstallTransitionalView(Vector members)
    
public  VectorprovidedUpServices()
    
public  booleansetProperties(Properties props)
    
public  voidstart()
    
public  voidstop()
     Overrides @org.jgroups.stack.MessageProtocol#stop().
protected  voidupdateView(View newMembers)
    

Field Detail
blockSendingBacklogThreshold
int blockSendingBacklogThreshold(Code)



block_sending
final Object block_sending(Code)



flowControl
RingNodeFlowControl flowControl(Code)



highestSeenSeq
long highestSeenSeq(Code)



isRecoveryLeader
volatile boolean isRecoveryLeader(Code)



lastRoundTokensAru
long lastRoundTokensAru(Code)



lastRoundTransmitCountlastRoundRebroadcastCount
int lastRoundTransmitCountlastRoundRebroadcastCount(Code)



liveMembersInRecoverysuspects
SortedSet liveMembersInRecoverysuspects(Code)



localAddress
Address localAddress(Code)



mutex
final Object mutex(Code)



myAru
long myAru(Code)



newMessagesQueue
final List newMessagesQueue(Code)



node
UdpRingNode node(Code)



prot_name
final public static String prot_name(Code)



receivedMessagesQueue
TreeMap receivedMessagesQueue(Code)



senderBlocked
boolean senderBlocked(Code)



sleepTime
volatile int sleepTime(Code)



state
volatile int state(Code)



threadCoordinationMutex
final Object threadCoordinationMutex(Code)



threadDeliveringMessage
final boolean threadDeliveringMessage(Code)



tokenCirculating
boolean tokenCirculating(Code)



tokenInStack
final boolean tokenInStack(Code)



tokenSeen
boolean tokenSeen(Code)



unblockSendingBacklogThreshold
int unblockSendingBacklogThreshold(Code)





Method Detail
getAllReceivedUpTo
public long getAllReceivedUpTo()(Code)



getName
public String getName()(Code)



getTokenReceiverAddress
public IpAddress getTokenReceiverAddress()(Code)



handleDownEvent
public boolean handleDownEvent(Event evt)(Code)



handleUpEvent
public boolean handleUpEvent(Event evt)(Code)



installTransitionalView
public void installTransitionalView(Vector members)(Code)



providedUpServices
public Vector providedUpServices()(Code)



setProperties
public boolean setProperties(Properties props)(Code)
Setup the Protocol instance acording to the configuration string



start
public void start() throws Exception(Code)



stop
public void stop()(Code)
Overrides @org.jgroups.stack.MessageProtocol#stop().



updateView
protected void updateView(View newMembers)(Code)



Methods inherited from org.jgroups.stack.RpcProtocol
public Object callRemoteMethod(Address dest, String method_name, int mode, long timeout) throws TimeoutException, SuspectedException(Code)(Java Doc)
public Object callRemoteMethod(Address dest, String method_name, Object[] args, Class[] types, int mode, long timeout) throws TimeoutException, SuspectedException(Code)(Java Doc)
public Object callRemoteMethod(Address dest, String method_name, Object[] args, String[] signature, int mode, long timeout) throws TimeoutException, SuspectedException(Code)(Java Doc)
public Object callRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout) throws TimeoutException, SuspectedException(Code)(Java Doc)
public RspList callRemoteMethods(Vector dests, String method_name, Object[] args, Class[] types, int mode, long timeout)(Code)(Java Doc)
public RspList callRemoteMethods(Vector dests, String method_name, Object[] args, String[] signature, int mode, long timeout)(Code)(Java Doc)
public RspList callRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Object handle(Message req)(Code)(Java Doc)
public boolean handleDownEvent(Event evt)(Code)(Java Doc)
public boolean handleUpEvent(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.