Java Doc for EPollArrayWrapper.java in  » 6.0-JDK-Platform » solaris » sun » nio » ch » 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 » 6.0 JDK Platform » solaris » sun.nio.ch 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.nio.ch.EPollArrayWrapper

EPollArrayWrapper
class EPollArrayWrapper (Code)
Manipulates a native array of epoll_event structs on Linux: typedef union epoll_data { void *ptr; int fd; __uint32_t u32; __uint64_t u64; } epoll_data_t; struct epoll_event { __uint32_t events; epoll_data_t data; }; The system call to wait for I/O events is epoll_wait(2). It populates an array of epoll_event structures that are passed to the call. The data member of the epoll_event structure contains the same data as was set when the file descriptor was registered to epoll via epoll_ctl(2). In this implementation we set data.fd to be the file descriptor that we register. That way, we have the file descriptor available when we process the events. All file descriptors registered with epoll have the POLLHUP and POLLERR events enabled even when registered with an event set of 0. To ensure that epoll_wait doesn't poll an idle file descriptor when the underlying connection is closed or reset then its registration is deleted from epoll (it will be re-added again if the event set is changed)


Field Summary
final static  shortDATA_OFFSET
    
final static  intEPOLLIN
    
final static  intEPOLL_CTL_ADD
    
final static  intEPOLL_CTL_DEL
    
final static  intEPOLL_CTL_MOD
    
final static  shortEVENT_OFFSET
    
final static  shortFD_OFFSET
    
final static  intNUM_EPOLLEVENTS
    
final static  shortSIZE_EPOLLEVENT
    
final  intepfd
    
 intincomingInterruptFD
    
 booleaninterrupted
    
 intinterruptedIndex
    
 intoutgoingInterruptFD
    
 intupdated
    

Constructor Summary
 EPollArrayWrapper()
    

Method Summary
 voidadd(int fd)
    
 voidclearInterrupted()
    
 voidcloseEPollFD()
    
 intgetDescriptor(int i)
    
 intgetEventOps(int i)
    
 voidinitInterrupt(int fd0, int fd1)
    
public  voidinterrupt()
    
 booleaninterrupted()
    
public  intinterruptedIndex()
    
 intpoll(long timeout)
    
 voidputData(int i, long value)
    
 voidputDescriptor(int i, int fd)
    
 voidputEventOps(int i, int event)
    
 voidrelease(int fd)
    
 voidsetInterest(int fd, int mask)
     Update the events for a given file descriptor.
 voidupdateRegistrations()
     Update the pending registrations.

Field Detail
DATA_OFFSET
final static short DATA_OFFSET(Code)



EPOLLIN
final static int EPOLLIN(Code)



EPOLL_CTL_ADD
final static int EPOLL_CTL_ADD(Code)



EPOLL_CTL_DEL
final static int EPOLL_CTL_DEL(Code)



EPOLL_CTL_MOD
final static int EPOLL_CTL_MOD(Code)



EVENT_OFFSET
final static short EVENT_OFFSET(Code)



FD_OFFSET
final static short FD_OFFSET(Code)



NUM_EPOLLEVENTS
final static int NUM_EPOLLEVENTS(Code)



SIZE_EPOLLEVENT
final static short SIZE_EPOLLEVENT(Code)



epfd
final int epfd(Code)



incomingInterruptFD
int incomingInterruptFD(Code)



interrupted
boolean interrupted(Code)



interruptedIndex
int interruptedIndex(Code)



outgoingInterruptFD
int outgoingInterruptFD(Code)



updated
int updated(Code)




Constructor Detail
EPollArrayWrapper
EPollArrayWrapper()(Code)




Method Detail
add
void add(int fd)(Code)
Add a new file descriptor to epoll



clearInterrupted
void clearInterrupted()(Code)



closeEPollFD
void closeEPollFD() throws IOException(Code)
Close epoll file descriptor and free poll array



getDescriptor
int getDescriptor(int i)(Code)



getEventOps
int getEventOps(int i)(Code)



initInterrupt
void initInterrupt(int fd0, int fd1)(Code)



interrupt
public void interrupt()(Code)



interrupted
boolean interrupted()(Code)



interruptedIndex
public int interruptedIndex()(Code)



poll
int poll(long timeout) throws IOException(Code)



putData
void putData(int i, long value)(Code)



putDescriptor
void putDescriptor(int i, int fd)(Code)



putEventOps
void putEventOps(int i, int event)(Code)



release
void release(int fd)(Code)
Remove a file descriptor from epoll



setInterest
void setInterest(int fd, int mask)(Code)
Update the events for a given file descriptor.



updateRegistrations
void updateRegistrations()(Code)
Update the pending registrations.



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.