Java Doc for NioReceiver.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » tribes » transport » nio » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.tribes.transport.nio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.tribes.transport.ReceiverBase
      org.apache.catalina.tribes.transport.nio.NioReceiver

NioReceiver
public class NioReceiver extends ReceiverBase implements Runnable,ChannelReceiver,ListenCallback(Code)

author:
   Filip Hanik
version:
   $Revision: 538977 $ $Date: 2007-05-17 17:43:49 +0200 (jeu., 17 mai 2007) $


Field Summary
protected  LinkedListevents
    
protected  longlastCheck
    
protected static  org.apache.juli.logging.Loglog
    
protected  StringManagersm
     The string manager for this package.

Constructor Summary
public  NioReceiver()
    

Method Summary
public  voidaddEvent(Runnable event)
    
protected  voidbind()
    
public static  voidcancelledKey(SelectionKey key)
    
public  AbstractRxTaskcreateRxTask()
    
public  voidevents()
    
public  StringgetInfo()
     Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
protected  voidlisten()
    
protected  voidreadDataFromSocket(SelectionKey key)
     Sample data handler method for a channel with data ready to read.
Parameters:
  key - A SelectionKey object associated with a channeldetermined by the selector to be ready for reading.
protected  voidregisterChannel(Selector selector, SelectableChannel channel, int ops, Object attach)
    
public  voidrun()
    
protected  voidsocketTimeouts()
    
public  voidstart()
    
public  voidstop()
    
protected  voidstopListening()
     Close Selector.

Field Detail
events
protected LinkedList events(Code)



lastCheck
protected long lastCheck(Code)



log
protected static org.apache.juli.logging.Log log(Code)



sm
protected StringManager sm(Code)
The string manager for this package.




Constructor Detail
NioReceiver
public NioReceiver()(Code)




Method Detail
addEvent
public void addEvent(Runnable event)(Code)



bind
protected void bind() throws IOException(Code)



cancelledKey
public static void cancelledKey(SelectionKey key)(Code)



createRxTask
public AbstractRxTask createRxTask()(Code)



events
public void events()(Code)



getInfo
public String getInfo()(Code)
Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.



listen
protected void listen() throws Exception(Code)
get data from channel and store in byte array send it to cluster
throws:
  IOException -
throws:
  java.nio.channels.ClosedChannelException -



readDataFromSocket
protected void readDataFromSocket(SelectionKey key) throws Exception(Code)
Sample data handler method for a channel with data ready to read.
Parameters:
  key - A SelectionKey object associated with a channeldetermined by the selector to be ready for reading. If thechannel returns an EOF condition, it is closed here, whichautomatically invalidates the associated key. The selectorwill then de-register the channel on the next select call.



registerChannel
protected void registerChannel(Selector selector, SelectableChannel channel, int ops, Object attach) throws Exception(Code)
Register the given channel with the given selector for the given operations of interest



run
public void run()(Code)
Start thread and listen



socketTimeouts
protected void socketTimeouts()(Code)



start
public void start() throws IOException(Code)
start cluster receiver
throws:
  Exception -
See Also:   org.apache.catalina.tribes.ClusterReceiver.start



stop
public void stop()(Code)



stopListening
protected void stopListening()(Code)
Close Selector.
See Also:   org.apache.catalina.tribes.transport.ClusterReceiverBase.stopListening



Fields inherited from org.apache.catalina.tribes.transport.ReceiverBase
final public static int OPTION_DIRECT_BUFFER(Code)(Java Doc)
protected static org.apache.juli.logging.Log log(Code)(Java Doc)

Methods inherited from org.apache.catalina.tribes.transport.ReceiverBase
protected int bind(ServerSocket socket, int portstart, int retries) throws IOException(Code)(Java Doc)
public boolean doListen()(Code)(Java Doc)
public String getAddress()(Code)(Java Doc)
public int getAutoBind()(Code)(Java Doc)
public InetAddress getBind()(Code)(Java Doc)
public boolean getDirect()(Code)(Java Doc)
public ExecutorService getExecutor()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public MessageListener getListener()(Code)(Java Doc)
public int getMaxTasks()(Code)(Java Doc)
public int getMaxThreads()(Code)(Java Doc)
public MessageListener getMessageListener()(Code)(Java Doc)
public int getMinTasks()(Code)(Java Doc)
public int getMinThreads()(Code)(Java Doc)
public boolean getOoBInline()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
public int getRxBufSize()(Code)(Java Doc)
public int getSecurePort()(Code)(Java Doc)
public long getSelectorTimeout()(Code)(Java Doc)
public boolean getSoKeepAlive()(Code)(Java Doc)
public boolean getSoLingerOn()(Code)(Java Doc)
public int getSoLingerTime()(Code)(Java Doc)
public boolean getSoReuseAddress()(Code)(Java Doc)
public int getSoTrafficClass()(Code)(Java Doc)
public RxTaskPool getTaskPool()(Code)(Java Doc)
public String getTcpListenAddress()(Code)(Java Doc)
public int getTcpListenPort()(Code)(Java Doc)
public boolean getTcpNoDelay()(Code)(Java Doc)
public long getTcpSelectorTimeout()(Code)(Java Doc)
public int getTcpThreadCount()(Code)(Java Doc)
public int getTimeout()(Code)(Java Doc)
public int getTxBufSize()(Code)(Java Doc)
public boolean getUseBufferPool()(Code)(Java Doc)
public int getWorkerThreadOptions()(Code)(Java Doc)
public void heartbeat()(Code)(Java Doc)
public boolean isListening()(Code)(Java Doc)
public void messageDataReceived(ChannelMessage data)(Code)(Java Doc)
public void setAddress(String host)(Code)(Java Doc)
public void setAutoBind(int autoBind)(Code)(Java Doc)
public void setBind(java.net.InetAddress bind)(Code)(Java Doc)
public void setDirect(boolean direct)(Code)(Java Doc)
public void setExecutor(ExecutorService executor)(Code)(Java Doc)
public void setHost(String host)(Code)(Java Doc)
public void setListen(boolean doListen)(Code)(Java Doc)
public void setListener(MessageListener listener)(Code)(Java Doc)
public void setLog(Log log)(Code)(Java Doc)
public void setMaxTasks(int maxTasks)(Code)(Java Doc)
public void setMaxThreads(int maxThreads)(Code)(Java Doc)
public void setMessageListener(MessageListener listener)(Code)(Java Doc)
public void setMinTasks(int minTasks)(Code)(Java Doc)
public void setMinThreads(int minThreads)(Code)(Java Doc)
public void setOoBInline(boolean ooBInline)(Code)(Java Doc)
public void setPool(RxTaskPool pool)(Code)(Java Doc)
public void setPort(int port)(Code)(Java Doc)
public void setRxBufSize(int rxBufSize)(Code)(Java Doc)
public void setSecurePort(int securePort)(Code)(Java Doc)
public void setSelectorTimeout(long selTimeout)(Code)(Java Doc)
public void setSoKeepAlive(boolean soKeepAlive)(Code)(Java Doc)
public void setSoLingerOn(boolean soLingerOn)(Code)(Java Doc)
public void setSoLingerTime(int soLingerTime)(Code)(Java Doc)
public void setSoReuseAddress(boolean soReuseAddress)(Code)(Java Doc)
public void setSoTrafficClass(int soTrafficClass)(Code)(Java Doc)
public void setTcpListenAddress(String tcpListenHost)(Code)(Java Doc)
public void setTcpListenPort(int tcpListenPort)(Code)(Java Doc)
public void setTcpNoDelay(boolean tcpNoDelay)(Code)(Java Doc)
public void setTcpSelectorTimeout(long selTimeout)(Code)(Java Doc)
public void setTcpThreadCount(int tcpThreadCount)(Code)(Java Doc)
public void setTimeout(int timeout)(Code)(Java Doc)
public void setTxBufSize(int txBufSize)(Code)(Java Doc)
public void setUseBufferPool(boolean useBufferPool)(Code)(Java Doc)
public void start() throws IOException(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.