Package org.apache.mina.management

Examples of org.apache.mina.management.IoSessionStat


    public long getBothIdleTime() {
        return session.getIdleTimeInMillis(IdleStatus.BOTH_IDLE);
    }

    public float getByteReadThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getByteReadThroughput();
    }
View Full Code Here


        else
            return stats.getByteReadThroughput();
    }

    public float getByteWrittenThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getByteWrittenThroughput();
    }
View Full Code Here

        else
            return stats.getByteWrittenThroughput();
    }

    public float getMessageReadThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getMessageReadThroughput();
    }
View Full Code Here

        else
            return stats.getMessageReadThroughput();
    }

    public float getMessageWrittenThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getMessageWrittenThroughput();
    }
View Full Code Here

    public long getBothIdleTime() {
        return session.getIdleTimeInMillis(IdleStatus.BOTH_IDLE);
    }

    public float getByteReadThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getByteReadThroughput();
    }
View Full Code Here

        else
            return stats.getByteReadThroughput();
    }

    public float getByteWrittenThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getByteWrittenThroughput();
    }
View Full Code Here

        else
            return stats.getByteWrittenThroughput();
    }

    public float getMessageReadThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getMessageReadThroughput();
    }
View Full Code Here

        else
            return stats.getMessageReadThroughput();
    }

    public float getMessageWrittenThroughtput() {
        IoSessionStat stats = (IoSessionStat) session
                .getAttribute(StatCollector.KEY);
        if (stats == null)
            return Float.NaN;
        else
            return stats.getMessageWrittenThroughput();
    }
View Full Code Here

    }


    public float getByteReadThroughtput()
    {
        IoSessionStat stats=(IoSessionStat)session.getAttribute(StatCollector.KEY);
        if(stats==null)
            return Float.NaN;
        else
            return stats.getByteReadThroughput();
    }
View Full Code Here

    }


    public float getByteWrittenThroughtput()
    {
        IoSessionStat stats=(IoSessionStat)session.getAttribute(StatCollector.KEY);
        if(stats==null)
            return Float.NaN;
        else
            return stats.getByteWrittenThroughput();
    }
View Full Code Here

TOP

Related Classes of org.apache.mina.management.IoSessionStat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.