Java Doc for DummySession.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
      org.apache.mina.common.DummySession

All known Subclasses:   org.apache.mina.filter.codec.ProtocolCodecSession,
DummySession
public class DummySession extends AbstractIoSession (Code)
A dummy IoSession for unit-testing or non-network-use of the classes that depends on IoSession .

Overriding I/O request methods

All I/O request methods (i.e. DummySession.close() , DummySession.write(Object) and DummySession.setTrafficMask(TrafficMask) ) are final and therefore cannot be overridden, but you can always add your custom IoFilter to the IoFilterChain to intercept any I/O events and requests.
author:
   The Apache MINA Project (dev@mina.apache.org)
version:
   $Rev: 607170 $, $Date: 2007-12-27 21:01:22 -0700 (Thu, 27 Dec 2007) $



Constructor Summary
public  DummySession()
     Creates a new instance.

Method Summary
public  IoSessionConfiggetConfig()
    
public  IoFilterChaingetFilterChain()
    
public  IoHandlergetHandler()
    
public  SocketAddressgetLocalAddress()
    
final protected  IoProcessor<IoSession>getProcessor()
    
public  SocketAddressgetRemoteAddress()
    
public  IoServicegetService()
    
public  TransportMetadatagetTransportMetadata()
    
public  voidsetConfig(IoSessionConfig config)
     Sets the configuration of this session.
public  voidsetHandler(IoHandler handler)
     Sets the IoHandler which handles this session.
public  voidsetLocalAddress(SocketAddress localAddress)
     Sets the socket address of local machine which is associated with this session.
public  voidsetRemoteAddress(SocketAddress remoteAddress)
     Sets the socket address of remote peer.
public  voidsetScheduledWriteBytes(long byteCount)
    
public  voidsetScheduledWriteMessages(int messages)
    
public  voidsetService(IoService service)
     Sets the IoService which provides I/O service to this session.
public  voidsetTransportMetadata(TransportMetadata transportMetadata)
     Sets the TransportMetadata that this session runs on.
public  voidupdateThroughput(boolean force)
     Update all statistical properties related with throughput.


Constructor Detail
DummySession
public DummySession()(Code)
Creates a new instance.




Method Detail
getConfig
public IoSessionConfig getConfig()(Code)



getFilterChain
public IoFilterChain getFilterChain()(Code)



getHandler
public IoHandler getHandler()(Code)



getLocalAddress
public SocketAddress getLocalAddress()(Code)



getProcessor
final protected IoProcessor<IoSession> getProcessor()(Code)



getRemoteAddress
public SocketAddress getRemoteAddress()(Code)



getService
public IoService getService()(Code)



getTransportMetadata
public TransportMetadata getTransportMetadata()(Code)



setConfig
public void setConfig(IoSessionConfig config)(Code)
Sets the configuration of this session.



setHandler
public void setHandler(IoHandler handler)(Code)
Sets the IoHandler which handles this session.



setLocalAddress
public void setLocalAddress(SocketAddress localAddress)(Code)
Sets the socket address of local machine which is associated with this session.



setRemoteAddress
public void setRemoteAddress(SocketAddress remoteAddress)(Code)
Sets the socket address of remote peer.



setScheduledWriteBytes
public void setScheduledWriteBytes(long byteCount)(Code)



setScheduledWriteMessages
public void setScheduledWriteMessages(int messages)(Code)



setService
public void setService(IoService service)(Code)
Sets the IoService which provides I/O service to this session.



setTransportMetadata
public void setTransportMetadata(TransportMetadata transportMetadata)(Code)
Sets the TransportMetadata that this session runs on.



updateThroughput
public void updateThroughput(boolean force)(Code)
Update all statistical properties related with throughput. 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.



Methods inherited from org.apache.mina.common.AbstractIoSession
final public CloseFuture close(boolean rightNow)(Code)(Java Doc)
final public CloseFuture close()(Code)(Java Doc)
final public CloseFuture closeOnFlush()(Code)(Java Doc)
final public boolean containsAttribute(Object key)(Code)(Java Doc)
final protected void decreaseReadBufferSize()(Code)(Java Doc)
final protected void decreaseScheduledBytesAndMessages(WriteRequest request)(Code)(Java Doc)
final public boolean equals(Object o)(Code)(Java Doc)
final public Object getAttachment()(Code)(Java Doc)
final public Object getAttribute(Object key)(Code)(Java Doc)
final public Object getAttribute(Object key, Object defaultValue)(Code)(Java Doc)
final public Set<Object> getAttributeKeys()(Code)(Java Doc)
final protected IoSessionAttributeMap getAttributeMap()(Code)(Java Doc)
final public int getBothIdleCount()(Code)(Java Doc)
final public CloseFuture getCloseFuture()(Code)(Java Doc)
final public long getCreationTime()(Code)(Java Doc)
final protected WriteRequest getCurrentWriteRequest()(Code)(Java Doc)
final public long getId()(Code)(Java Doc)
final public int getIdleCount(IdleStatus status)(Code)(Java Doc)
final public long getLastBothIdleTime()(Code)(Java Doc)
final public long getLastIdleTime(IdleStatus status)(Code)(Java Doc)
final public long getLastIoTime()(Code)(Java Doc)
final public long getLastReadTime()(Code)(Java Doc)
final public long getLastReaderIdleTime()(Code)(Java Doc)
final public long getLastWriteTime()(Code)(Java Doc)
final public long getLastWriterIdleTime()(Code)(Java Doc)
abstract protected IoProcessor getProcessor()(Code)(Java Doc)
final public long getReadBytes()(Code)(Java Doc)
final public double getReadBytesThroughput()(Code)(Java Doc)
final public long getReadMessages()(Code)(Java Doc)
final public double getReadMessagesThroughput()(Code)(Java Doc)
final public int getReaderIdleCount()(Code)(Java Doc)
final public long getScheduledWriteBytes()(Code)(Java Doc)
final public int getScheduledWriteMessages()(Code)(Java Doc)
public SocketAddress getServiceAddress()(Code)(Java Doc)
final public TrafficMask getTrafficMask()(Code)(Java Doc)
final protected WriteRequestQueue getWriteRequestQueue()(Code)(Java Doc)
final public int getWriterIdleCount()(Code)(Java Doc)
final public long getWrittenBytes()(Code)(Java Doc)
final public double getWrittenBytesThroughput()(Code)(Java Doc)
final public long getWrittenMessages()(Code)(Java Doc)
final public double getWrittenMessagesThroughput()(Code)(Java Doc)
final public int hashCode()(Code)(Java Doc)
final protected void increaseIdleCount(IdleStatus status, long currentTime)(Code)(Java Doc)
final protected void increaseReadBufferSize()(Code)(Java Doc)
final protected void increaseReadBytes(long increment, long currentTime)(Code)(Java Doc)
final protected void increaseReadMessages(long currentTime)(Code)(Java Doc)
final protected void increaseScheduledWriteBytes(long increment)(Code)(Java Doc)
final protected void increaseScheduledWriteMessages()(Code)(Java Doc)
final protected void increaseWrittenBytesAndMessages(WriteRequest request, long currentTime)(Code)(Java Doc)
final public boolean isBothIdle()(Code)(Java Doc)
final public boolean isClosing()(Code)(Java Doc)
final public boolean isConnected()(Code)(Java Doc)
final public boolean isIdle(IdleStatus status)(Code)(Java Doc)
final public boolean isReaderIdle()(Code)(Java Doc)
final protected boolean isScheduledForFlush()(Code)(Java Doc)
final public boolean isWriterIdle()(Code)(Java Doc)
final protected void offerClosedReadFuture()(Code)(Java Doc)
final protected void offerFailedReadFuture(Throwable exception)(Code)(Java Doc)
final protected void offerReadFuture(Object message)(Code)(Java Doc)
final public ReadFuture read()(Code)(Java Doc)
final public Object removeAttribute(Object key)(Code)(Java Doc)
final public boolean removeAttribute(Object key, Object value)(Code)(Java Doc)
final public boolean replaceAttribute(Object key, Object oldValue, Object newValue)(Code)(Java Doc)
final public void resumeRead()(Code)(Java Doc)
final public void resumeWrite()(Code)(Java Doc)
final public Object setAttachment(Object attachment)(Code)(Java Doc)
final public Object setAttribute(Object key, Object value)(Code)(Java Doc)
final public Object setAttribute(Object key)(Code)(Java Doc)
final public Object setAttributeIfAbsent(Object key, Object value)(Code)(Java Doc)
final public Object setAttributeIfAbsent(Object key)(Code)(Java Doc)
final protected void setAttributeMap(IoSessionAttributeMap attributes)(Code)(Java Doc)
final protected void setCurrentWriteRequest(WriteRequest currentWriteRequest)(Code)(Java Doc)
final protected boolean setScheduledForFlush(boolean flag)(Code)(Java Doc)
protected void setScheduledWriteBytes(long byteCount)(Code)(Java Doc)
protected void setScheduledWriteMessages(int messages)(Code)(Java Doc)
final public void setTrafficMask(TrafficMask trafficMask)(Code)(Java Doc)
final protected void setTrafficMaskNow(TrafficMask trafficMask)(Code)(Java Doc)
final protected void setWriteRequestQueue(WriteRequestQueue writeRequestQueue)(Code)(Java Doc)
final public void suspendRead()(Code)(Java Doc)
final public void suspendWrite()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final protected void updateThroughput(long currentTime, boolean force)(Code)(Java Doc)
final public WriteFuture write(Object message)(Code)(Java Doc)
final public WriteFuture write(Object message, SocketAddress remoteAddress)(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.