Java Doc for BasicTCP.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) 


java.lang.Object
   java.lang.Thread
      org.jgroups.stack.UpHandler
         org.jgroups.protocols.TP
            org.jgroups.protocols.BasicTCP

All known Subclasses:   org.jgroups.protocols.TCP,  org.jgroups.protocols.TCP_NIO,
BasicTCP
abstract public class BasicTCP extends TP (Code)
Shared base class for tcpip protocols
author:
   Scott Marlow


Field Summary
protected  longconn_expire_time
    
protected  intend_port
    
protected  InetAddressexternal_addr
    
 intlinger
    
protected  longreaper_interval
    
 intrecv_buf_size
    
 intsend_buf_size
    
 booleanskip_suspected_members
    
 intsock_conn_timeout
    
protected  intstart_port
    
 booleansuspect_on_send_failure
    
final  BoundedListsuspected_mbrs
     List the maintains the currently suspected members.
 booleantcp_nodelay
    
 booleanuse_send_queues
    


Method Summary
public  longgetConnExpireTime()
    
public  intgetEndPort()
    
public  StringgetInfo()
    
public  longgetReaperInterval()
    
public  intgetStartPort()
    
protected  voidhandleDownEvent(Event evt)
    
public  voidinit()
    
public  voidpostUnmarshalling(Message msg, Address dest, Address src, boolean multicast)
    
public  voidpostUnmarshallingList(Message msg, Address dest, boolean multicast)
    
abstract public  StringprintConnections()
    
public  voidreceive(Address sender, byte[] data, int offset, int length)
    
abstract public  voidretainAll(Collection members)
    
abstract public  voidsend(Address dest, byte[] data, int offset, int length)
    
public  voidsendToAllMembers(byte[] data, int offset, int length)
    
public  voidsendToSingleMember(Address dest, byte[] data, int offset, int length)
    
public  voidsetConnExpireTime(long conn_expire_time)
    
public  voidsetEndPort(int end_port)
    
public  booleansetProperties(Properties props)
    
public  voidsetReaperInterval(long reaper_interval)
    
public  voidsetStartPort(int start_port)
    

Field Detail
conn_expire_time
protected long conn_expire_time(Code)



end_port
protected int end_port(Code)



external_addr
protected InetAddress external_addr(Code)



linger
int linger(Code)



reaper_interval
protected long reaper_interval(Code)



recv_buf_size
int recv_buf_size(Code)



send_buf_size
int send_buf_size(Code)



skip_suspected_members
boolean skip_suspected_members(Code)
Should we drop unicast messages to suspected members or not



sock_conn_timeout
int sock_conn_timeout(Code)



start_port
protected int start_port(Code)



suspect_on_send_failure
boolean suspect_on_send_failure(Code)
When we cannot send a message to P (on an exception), then we send a SUSPECT message up the stack



suspected_mbrs
final BoundedList suspected_mbrs(Code)
List the maintains the currently suspected members. This is used so we don't send too many SUSPECT events up the stack (one per message !)



tcp_nodelay
boolean tcp_nodelay(Code)



use_send_queues
boolean use_send_queues(Code)
Use separate send queues for each connection





Method Detail
getConnExpireTime
public long getConnExpireTime()(Code)



getEndPort
public int getEndPort()(Code)



getInfo
public String getInfo()(Code)



getReaperInterval
public long getReaperInterval()(Code)



getStartPort
public int getStartPort()(Code)



handleDownEvent
protected void handleDownEvent(Event evt)(Code)



init
public void init() throws Exception(Code)



postUnmarshalling
public void postUnmarshalling(Message msg, Address dest, Address src, boolean multicast)(Code)



postUnmarshallingList
public void postUnmarshallingList(Message msg, Address dest, boolean multicast)(Code)



printConnections
abstract public String printConnections()(Code)



receive
public void receive(Address sender, byte[] data, int offset, int length)(Code)
ConnectionTable.Receiver interface



retainAll
abstract public void retainAll(Collection members)(Code)



send
abstract public void send(Address dest, byte[] data, int offset, int length) throws Exception(Code)



sendToAllMembers
public void sendToAllMembers(byte[] data, int offset, int length) throws Exception(Code)



sendToSingleMember
public void sendToSingleMember(Address dest, byte[] data, int offset, int length) throws Exception(Code)



setConnExpireTime
public void setConnExpireTime(long conn_expire_time)(Code)



setEndPort
public void setEndPort(int end_port)(Code)



setProperties
public boolean setProperties(Properties props)(Code)



setReaperInterval
public void setReaperInterval(long reaper_interval)(Code)



setStartPort
public void setStartPort(int start_port)(Code)



Fields inherited from org.jgroups.protocols.TP
final static byte LIST(Code)(Java Doc)
final static byte MULTICAST(Code)(Java Doc)
byte[] additional_data(Code)(Java Doc)
HashMap addr_translation_table(Code)(Java Doc)
protected InetAddress bind_addr(Code)(Java Doc)
int bind_port(Code)(Java Doc)
boolean bind_to_all_interfaces(Code)(Java Doc)
final ExposedBufferedInputStream buf_in_stream(Code)(Java Doc)
final ExposedBufferedOutputStream buf_out_stream(Code)(Java Doc)
protected String channel_name(Code)(Java Doc)
String diagnostics_addr(Code)(Java Doc)
int diagnostics_port(Code)(Java Doc)
final DataInputStream dis(Code)(Java Doc)
boolean discard_incompatible_packets(Code)(Java Doc)
final ExposedDataOutputStream dos(Code)(Java Doc)
boolean enable_bundling(Code)(Java Doc)
boolean enable_diagnostics(Code)(Java Doc)
static NumberFormat f(Code)(Java Doc)
TpHeader header(Code)(Java Doc)
final ExposedByteArrayInputStream in_stream(Code)(Java Doc)
IncomingMessageHandler incoming_msg_handler(Code)(Java Doc)
Queue incoming_msg_queue(Code)(Java Doc)
IncomingPacketHandler incoming_packet_handler(Code)(Java Doc)
Queue incoming_packet_queue(Code)(Java Doc)
protected Address local_addr(Code)(Java Doc)
boolean loopback(Code)(Java Doc)
int max_bundle_size(Code)(Java Doc)
long max_bundle_timeout(Code)(Java Doc)
final protected Vector members(Code)(Java Doc)
final String name(Code)(Java Doc)
long num_msgs_sentnum_msgs_receivednum_bytes_sentnum_bytes_received(Code)(Java Doc)
final ExposedByteArrayOutputStream out_stream(Code)(Java Doc)
OutgoingPacketHandler outgoing_packet_handler(Code)(Java Doc)
BoundedLinkedQueue outgoing_queue(Code)(Java Doc)
int outgoing_queue_max_size(Code)(Java Doc)
int port_range(Code)(Java Doc)
java.util.List receive_interfaces(Code)(Java Doc)
boolean receive_on_all_interfaces(Code)(Java Doc)
java.util.List send_interfaces(Code)(Java Doc)
boolean send_on_all_interfaces(Code)(Java Doc)
protected TimeScheduler timer(Code)(Java Doc)
boolean use_addr_translation(Code)(Java Doc)
boolean use_incoming_packet_handler(Code)(Java Doc)
boolean use_local_host(Code)(Java Doc)
boolean use_outgoing_packet_handler(Code)(Java Doc)
protected View view(Code)(Java Doc)

Methods inherited from org.jgroups.protocols.TP
public void down(Event evt)(Code)(Java Doc)
public Map dumpStats()(Code)(Java Doc)
public String getBindAddress()(Code)(Java Doc)
public boolean getBindToAllInterfaces()(Code)(Java Doc)
public String getChannelName()(Code)(Java Doc)
public int getIncomingQueueSize()(Code)(Java Doc)
abstract public String getInfo()(Code)(Java Doc)
public Address getLocalAddress()(Code)(Java Doc)
public int getMaxBundleSize()(Code)(Java Doc)
public long getMaxBundleTimeout()(Code)(Java Doc)
public long getNumBytesReceived()(Code)(Java Doc)
public long getNumBytesSent()(Code)(Java Doc)
public long getNumMessagesReceived()(Code)(Java Doc)
public long getNumMessagesSent()(Code)(Java Doc)
public int getOutgoingQueueMaxSize()(Code)(Java Doc)
public int getOutgoingQueueSize()(Code)(Java Doc)
public java.util.List getReceiveInterfaces()(Code)(Java Doc)
public java.util.List getSendInterfaces()(Code)(Java Doc)
protected void handleConfigEvent(HashMap map)(Code)(Java Doc)
protected void handleDownEvent(Event evt)(Code)(Java Doc)
public void init() throws Exception(Code)(Java Doc)
public boolean isDiscardIncompatiblePackets()(Code)(Java Doc)
public boolean isEnableBundling()(Code)(Java Doc)
public boolean isLoopback()(Code)(Java Doc)
public boolean isReceiveOnAllInterfaces()(Code)(Java Doc)
public boolean isSendOnAllInterfaces()(Code)(Java Doc)
public boolean isUseIncomingPacketHandler()(Code)(Java Doc)
public boolean isUseOutgoingPacketHandler()(Code)(Java Doc)
abstract public void postUnmarshalling(Message msg, Address dest, Address src, boolean multicast)(Code)(Java Doc)
abstract public void postUnmarshallingList(Message msg, Address dest, boolean multicast)(Code)(Java Doc)
final protected void receive(Address dest, Address sender, byte[] data, int offset, int length)(Code)(Java Doc)
public void resetStats()(Code)(Java Doc)
abstract public void sendToAllMembers(byte[] data, int offset, int length) throws Exception(Code)(Java Doc)
abstract public void sendToSingleMember(Address dest, byte[] data, int offset, int length) throws Exception(Code)(Java Doc)
public void setBindAddress(String bind_addr) throws UnknownHostException(Code)(Java Doc)
public void setBindToAllInterfaces(boolean flag)(Code)(Java Doc)
public void setDiscardIncompatiblePackets(boolean flag)(Code)(Java Doc)
public void setEnableBundling(boolean flag)(Code)(Java Doc)
public void setLoopback(boolean b)(Code)(Java Doc)
public void setMaxBundleSize(int size)(Code)(Java Doc)
public void setMaxBundleTimeout(long timeout)(Code)(Java Doc)
public void setOutgoingQueueMaxSize(int new_size)(Code)(Java Doc)
public boolean setProperties(Properties props)(Code)(Java Doc)
protected void setThreadNames()(Code)(Java Doc)
public void start() throws Exception(Code)(Java Doc)
public void startUpHandler()(Code)(Java Doc)
public void stop()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void unsetThreadNames()(Code)(Java Doc)
public void up(Event evt)(Code)(Java Doc)

Fields inherited from org.jgroups.stack.UpHandler
final protected Log log(Code)(Java Doc)

Methods inherited from org.jgroups.stack.UpHandler
public void run()(Code)(Java Doc)
public void setObserver(ProtocolObserver observer)(Code)(Java Doc)

Fields inherited from java.lang.Thread
final public static int MAX_PRIORITY(Code)(Java Doc)
final public static int MIN_PRIORITY(Code)(Java Doc)
final public static int NORM_PRIORITY(Code)(Java Doc)

Methods inherited from java.lang.Thread
public static int activeCount()(Code)(Java Doc)
final public void checkAccess()(Code)(Java Doc)
native public int countStackFrames()(Code)(Java Doc)
native public static Thread currentThread()(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public static void dumpStack()(Code)(Java Doc)
public static int enumerate(Thread tarray)(Code)(Java Doc)
public static Map<Thread, StackTraceElement[]> getAllStackTraces()(Code)(Java Doc)
public ClassLoader getContextClassLoader()(Code)(Java Doc)
public static UncaughtExceptionHandler getDefaultUncaughtExceptionHandler()(Code)(Java Doc)
public long getId()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public int getPriority()(Code)(Java Doc)
public StackTraceElement[] getStackTrace()(Code)(Java Doc)
public State getState()(Code)(Java Doc)
final public ThreadGroup getThreadGroup()(Code)(Java Doc)
public UncaughtExceptionHandler getUncaughtExceptionHandler()(Code)(Java Doc)
native public static boolean holdsLock(Object obj)(Code)(Java Doc)
public void interrupt()(Code)(Java Doc)
public static boolean interrupted()(Code)(Java Doc)
final native public boolean isAlive()(Code)(Java Doc)
final public boolean isDaemon()(Code)(Java Doc)
public boolean isInterrupted()(Code)(Java Doc)
final public synchronized void join(long millis) throws InterruptedException(Code)(Java Doc)
final public synchronized void join(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void join() throws InterruptedException(Code)(Java Doc)
final public void resume()(Code)(Java Doc)
public void run()(Code)(Java Doc)
public void setContextClassLoader(ClassLoader cl)(Code)(Java Doc)
final public void setDaemon(boolean on)(Code)(Java Doc)
public static void setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler eh)(Code)(Java Doc)
final public void setName(String name)(Code)(Java Doc)
final public void setPriority(int newPriority)(Code)(Java Doc)
public void setUncaughtExceptionHandler(UncaughtExceptionHandler eh)(Code)(Java Doc)
native public static void sleep(long millis) throws InterruptedException(Code)(Java Doc)
public static void sleep(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
public synchronized void start()(Code)(Java Doc)
final public void stop()(Code)(Java Doc)
final public synchronized void stop(Throwable obj)(Code)(Java Doc)
final public void suspend()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
native public static void yield()(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.