Java Doc for AbstractIoSession.java in  » Net » mina-2.0.0-M1 » org » apache » mina » common » 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 » mina 2.0.0 M1 » org.apache.mina.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.mina.common.AbstractIoSession

All known Subclasses:   org.apache.mina.common.DummySession,  org.apache.mina.transport.socket.apr.AprSession,  org.apache.mina.transport.vmpipe.VmPipeSessionImpl,  org.apache.mina.transport.socket.nio.NioSession,
AbstractIoSession
abstract public class AbstractIoSession implements IoSession(Code)
Base implementation of IoSession .
author:
   The Apache MINA Project (dev@mina.apache.org)
version:
   $Rev: 627806 $, $Date: 2008-02-14 10:17:15 -0700 (Thu, 14 Feb 2008) $



Constructor Summary
protected  AbstractIoSession()
    

Method Summary
final public  CloseFutureclose(boolean rightNow)
    
final public  CloseFutureclose()
    
final public  CloseFuturecloseOnFlush()
    
final public  booleancontainsAttribute(Object key)
    
final protected  voiddecreaseReadBufferSize()
    
final protected  voiddecreaseScheduledBytesAndMessages(WriteRequest request)
    
final public  booleanequals(Object o)
    
final public  ObjectgetAttachment()
    
final public  ObjectgetAttribute(Object key)
    
final public  ObjectgetAttribute(Object key, Object defaultValue)
    
final public  Set<Object>getAttributeKeys()
    
final protected  IoSessionAttributeMapgetAttributeMap()
    
final public  intgetBothIdleCount()
    
final public  CloseFuturegetCloseFuture()
    
final public  longgetCreationTime()
    
final protected  WriteRequestgetCurrentWriteRequest()
    
final public  longgetId()
    
final public  intgetIdleCount(IdleStatus status)
    
final public  longgetLastBothIdleTime()
    
final public  longgetLastIdleTime(IdleStatus status)
    
final public  longgetLastIoTime()
    
final public  longgetLastReadTime()
    
final public  longgetLastReaderIdleTime()
    
final public  longgetLastWriteTime()
    
final public  longgetLastWriterIdleTime()
    
abstract protected  IoProcessorgetProcessor()
    
final public  longgetReadBytes()
    
final public  doublegetReadBytesThroughput()
    
final public  longgetReadMessages()
    
final public  doublegetReadMessagesThroughput()
    
final public  intgetReaderIdleCount()
    
final public  longgetScheduledWriteBytes()
    
final public  intgetScheduledWriteMessages()
    
public  SocketAddressgetServiceAddress()
    
final public  TrafficMaskgetTrafficMask()
    
final protected  WriteRequestQueuegetWriteRequestQueue()
    
final public  intgetWriterIdleCount()
    
final public  longgetWrittenBytes()
    
final public  doublegetWrittenBytesThroughput()
    
final public  longgetWrittenMessages()
    
final public  doublegetWrittenMessagesThroughput()
    
final public  inthashCode()
    
final protected  voidincreaseIdleCount(IdleStatus status, long currentTime)
    
final protected  voidincreaseReadBufferSize()
    
final protected  voidincreaseReadBytes(long increment, long currentTime)
    
final protected  voidincreaseReadMessages(long currentTime)
    
final protected  voidincreaseScheduledWriteBytes(long increment)
    
final protected  voidincreaseScheduledWriteMessages()
    
final protected  voidincreaseWrittenBytesAndMessages(WriteRequest request, long currentTime)
    
final public  booleanisBothIdle()
    
final public  booleanisClosing()
    
final public  booleanisConnected()
    
final public  booleanisIdle(IdleStatus status)
    
final public  booleanisReaderIdle()
    
final protected  booleanisScheduledForFlush()
    
final public  booleanisWriterIdle()
    
final protected  voidofferClosedReadFuture()
    
final protected  voidofferFailedReadFuture(Throwable exception)
    
final protected  voidofferReadFuture(Object message)
    
final public  ReadFutureread()
    
final public  ObjectremoveAttribute(Object key)
    
final public  booleanremoveAttribute(Object key, Object value)
    
final public  booleanreplaceAttribute(Object key, Object oldValue, Object newValue)
    
final public  voidresumeRead()
    
final public  voidresumeWrite()
    
final public  ObjectsetAttachment(Object attachment)
    
final public  ObjectsetAttribute(Object key, Object value)
    
final public  ObjectsetAttribute(Object key)
    
final public  ObjectsetAttributeIfAbsent(Object key, Object value)
    
final public  ObjectsetAttributeIfAbsent(Object key)
    
final protected  voidsetAttributeMap(IoSessionAttributeMap attributes)
    
final protected  voidsetCurrentWriteRequest(WriteRequest currentWriteRequest)
    
final protected  booleansetScheduledForFlush(boolean flag)
    
protected  voidsetScheduledWriteBytes(long byteCount)
    
protected  voidsetScheduledWriteMessages(int messages)
    
final public  voidsetTrafficMask(TrafficMask trafficMask)
    
final protected  voidsetTrafficMaskNow(TrafficMask trafficMask)
    
final protected  voidsetWriteRequestQueue(WriteRequestQueue writeRequestQueue)
    
final public  voidsuspendRead()
    
final public  voidsuspendWrite()
    
public  StringtoString()
    
final protected  voidupdateThroughput(long currentTime, boolean force)
     Update all statistical properties related with throughput assuming the specified time is the current time.
final public  WriteFuturewrite(Object message)
    
final public  WriteFuturewrite(Object message, SocketAddress remoteAddress)
    


Constructor Detail
AbstractIoSession
protected AbstractIoSession()(Code)




Method Detail
close
final public CloseFuture close(boolean rightNow)(Code)



close
final public CloseFuture close()(Code)



closeOnFlush
final public CloseFuture closeOnFlush()(Code)



containsAttribute
final public boolean containsAttribute(Object key)(Code)



decreaseReadBufferSize
final protected void decreaseReadBufferSize()(Code)



decreaseScheduledBytesAndMessages
final protected void decreaseScheduledBytesAndMessages(WriteRequest request)(Code)



equals
final public boolean equals(Object o)(Code)



getAttachment
final public Object getAttachment()(Code)



getAttribute
final public Object getAttribute(Object key)(Code)



getAttribute
final public Object getAttribute(Object key, Object defaultValue)(Code)



getAttributeKeys
final public Set<Object> getAttributeKeys()(Code)



getAttributeMap
final protected IoSessionAttributeMap getAttributeMap()(Code)



getBothIdleCount
final public int getBothIdleCount()(Code)



getCloseFuture
final public CloseFuture getCloseFuture()(Code)



getCreationTime
final public long getCreationTime()(Code)



getCurrentWriteRequest
final protected WriteRequest getCurrentWriteRequest()(Code)



getId
final public long getId()(Code)



getIdleCount
final public int getIdleCount(IdleStatus status)(Code)



getLastBothIdleTime
final public long getLastBothIdleTime()(Code)



getLastIdleTime
final public long getLastIdleTime(IdleStatus status)(Code)



getLastIoTime
final public long getLastIoTime()(Code)



getLastReadTime
final public long getLastReadTime()(Code)



getLastReaderIdleTime
final public long getLastReaderIdleTime()(Code)



getLastWriteTime
final public long getLastWriteTime()(Code)



getLastWriterIdleTime
final public long getLastWriterIdleTime()(Code)



getProcessor
abstract protected IoProcessor getProcessor()(Code)



getReadBytes
final public long getReadBytes()(Code)



getReadBytesThroughput
final public double getReadBytesThroughput()(Code)



getReadMessages
final public long getReadMessages()(Code)



getReadMessagesThroughput
final public double getReadMessagesThroughput()(Code)



getReaderIdleCount
final public int getReaderIdleCount()(Code)



getScheduledWriteBytes
final public long getScheduledWriteBytes()(Code)



getScheduledWriteMessages
final public int getScheduledWriteMessages()(Code)



getServiceAddress
public SocketAddress getServiceAddress()(Code)



getTrafficMask
final public TrafficMask getTrafficMask()(Code)



getWriteRequestQueue
final protected WriteRequestQueue getWriteRequestQueue()(Code)



getWriterIdleCount
final public int getWriterIdleCount()(Code)



getWrittenBytes
final public long getWrittenBytes()(Code)



getWrittenBytesThroughput
final public double getWrittenBytesThroughput()(Code)



getWrittenMessages
final public long getWrittenMessages()(Code)



getWrittenMessagesThroughput
final public double getWrittenMessagesThroughput()(Code)



hashCode
final public int hashCode()(Code)



increaseIdleCount
final protected void increaseIdleCount(IdleStatus status, long currentTime)(Code)



increaseReadBufferSize
final protected void increaseReadBufferSize()(Code)



increaseReadBytes
final protected void increaseReadBytes(long increment, long currentTime)(Code)



increaseReadMessages
final protected void increaseReadMessages(long currentTime)(Code)



increaseScheduledWriteBytes
final protected void increaseScheduledWriteBytes(long increment)(Code)



increaseScheduledWriteMessages
final protected void increaseScheduledWriteMessages()(Code)



increaseWrittenBytesAndMessages
final protected void increaseWrittenBytesAndMessages(WriteRequest request, long currentTime)(Code)



isBothIdle
final public boolean isBothIdle()(Code)



isClosing
final public boolean isClosing()(Code)



isConnected
final public boolean isConnected()(Code)



isIdle
final public boolean isIdle(IdleStatus status)(Code)



isReaderIdle
final public boolean isReaderIdle()(Code)



isScheduledForFlush
final protected boolean isScheduledForFlush()(Code)



isWriterIdle
final public boolean isWriterIdle()(Code)



offerClosedReadFuture
final protected void offerClosedReadFuture()(Code)



offerFailedReadFuture
final protected void offerFailedReadFuture(Throwable exception)(Code)



offerReadFuture
final protected void offerReadFuture(Object message)(Code)



read
final public ReadFuture read()(Code)



removeAttribute
final public Object removeAttribute(Object key)(Code)



removeAttribute
final public boolean removeAttribute(Object key, Object value)(Code)



replaceAttribute
final public boolean replaceAttribute(Object key, Object oldValue, Object newValue)(Code)



resumeRead
final public void resumeRead()(Code)



resumeWrite
final public void resumeWrite()(Code)



setAttachment
final public Object setAttachment(Object attachment)(Code)



setAttribute
final public Object setAttribute(Object key, Object value)(Code)



setAttribute
final public Object setAttribute(Object key)(Code)



setAttributeIfAbsent
final public Object setAttributeIfAbsent(Object key, Object value)(Code)



setAttributeIfAbsent
final public Object setAttributeIfAbsent(Object key)(Code)



setAttributeMap
final protected void setAttributeMap(IoSessionAttributeMap attributes)(Code)



setCurrentWriteRequest
final protected void setCurrentWriteRequest(WriteRequest currentWriteRequest)(Code)



setScheduledForFlush
final protected boolean setScheduledForFlush(boolean flag)(Code)



setScheduledWriteBytes
protected void setScheduledWriteBytes(long byteCount)(Code)



setScheduledWriteMessages
protected void setScheduledWriteMessages(int messages)(Code)



setTrafficMask
final public void setTrafficMask(TrafficMask trafficMask)(Code)



setTrafficMaskNow
final protected void setTrafficMaskNow(TrafficMask trafficMask)(Code)



setWriteRequestQueue
final protected void setWriteRequestQueue(WriteRequestQueue writeRequestQueue)(Code)



suspendRead
final public void suspendRead()(Code)



suspendWrite
final public void suspendWrite()(Code)



toString
public String toString()(Code)



updateThroughput
final protected void updateThroughput(long currentTime, boolean force)(Code)
Update all statistical properties related with throughput assuming the specified time is the current time. By default this method returns silently without updating the throughput properties if they were calculated already within last IoSessionConfig.getThroughputCalculationInterval calculation interval . If, however, force is specified as true, this method updates the throughput properties immediately.
Parameters:
  currentTime - the current time in milliseconds



write
final public WriteFuture write(Object message)(Code)



write
final public WriteFuture write(Object message, SocketAddress remoteAddress)(Code)



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.