Issue Details (XML | Word | Printable)

Key: DIRMINA-2
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Trustin Lee
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

Traffic control

Created: 01/Feb/05 10:08 AM   Updated: 29/Nov/05 09:20 AM
Return to search
Component/s: None
Affects Version/s: 0.7.0, 0.8.0
Fix Version/s: 0.9.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works traffic-control.diff 2005-11-02 11:35 AM Trustin Lee 7 kB

Resolution Date: 29/Nov/05 09:20 AM


 Description  « Hide
IoSession should have some traffic control methods to throttle traffic.
* IoSession.setTrafficMask( TrafficMask );

TrafficMask is an enumeration type consisted of
* NONE
* READ
* WRITE
* ALL

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Trustin Lee added a comment - 07/May/05 03:02 PM
Following up new versioning strategy

Trustin Lee added a comment - 29/Oct/05 12:24 AM
We can rename IdleStatus to IoType and reuse it like this:
* IoSession.suspend( IoType )
* IoSession.resume( IoType )

Trustin Lee added a comment - 02/Nov/05 11:35 AM
Added a patch by Niklas Therning

Trustin Lee added a comment - 02/Nov/05 02:15 PM
Updated the issue description following to the recent changes.

Niklas Therning added a comment - 29/Nov/05 01:40 AM
Traffic control has now been implemented for all transports and has been checked in to trunk. As far as I can see this issue can now be closed.

NOTE: Traffic control for server side datagram sessions (originating from a DatagramAcceptor) will never happen since a new session is always created when new data is received. However, traffic control for sessions created using the DatagramConnector has been implemented.

Trustin Lee added a comment - 29/Nov/05 02:35 AM
Do you think we need to support the traffic control for server side datagram sessions? I don't see any working solution for this problem. If we cannot support the traffic control for server side daragrams, should we throw an UnsupportedOperationException, or just ignore the request silently?

Trustin Lee added a comment - 29/Nov/05 02:45 AM
I looked into your modification in detail. It looks really good! You did a great job. It was most impressive that you've got rid of VmPipeFilter. :)