You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by GitBox <gi...@apache.org> on 2022/12/16 08:44:18 UTC

[GitHub] [mina-sshd] dragonknight88 opened a new issue, #291: How to: Unable to access session statistics

dragonknight88 opened a new issue, #291:
URL: https://github.com/apache/mina-sshd/issues/291

   I have implemented the _sessionClosed_  of **_org.apache.sshd.common.session.SessionListener_** to access session stats; but  couldn't access to methods specified for variables [here](https://mina.apache.org/mina-project/userguide/ch4-session/ch4.2-session-statistics.html) on session/IoSession. 
   
   As a workaround currently I have overridden read and written methods of _AbstractSftpEventListenerAdapter_ to pull dataLen. 
   Is there any other/right way I could access these stats?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


[GitHub] [mina-sshd] tomaswolf commented on issue #291: How to: Unable to access session statistics

Posted by GitBox <gi...@apache.org>.
tomaswolf commented on issue #291:
URL: https://github.com/apache/mina-sshd/issues/291#issuecomment-1354974361

   The IoConnector/IoAcceptor/IoSession layer is an abstraction over several implementations (NIO2, MINA, Netty). Yes, it does not expose the MINA-specific per-session statistics. If you need access to these statistics from MINA, you're probably best off by creating your own transport back-end based on the existing org.apache.sshd.mina and returning a customized MinaSession that does have accessors for the statistics you need.
   
   At a higher level, you can then get the IoSession from the SSH session, downcast to your own class, and call the getters.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


[GitHub] [mina-sshd] tomaswolf closed issue #291: How to: Unable to access session statistics

Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf closed issue #291: How to: Unable to access session statistics
URL: https://github.com/apache/mina-sshd/issues/291


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org