de.root1.simon
Class RemoteStatistics

java.lang.Object
  extended by de.root1.simon.RemoteStatistics
All Implemented Interfaces:
SimonRemoteStatistics

public class RemoteStatistics
extends java.lang.Object
implements SimonRemoteStatistics

A simple implementation of SimonRemoteStatistics

Author:
alexanderchristian

Constructor Summary
protected RemoteStatistics(org.apache.mina.core.session.IoSession ioSession)
           
 
Method Summary
 long getLastIoTime()
          Returns the time in milliseconds when I/O occurred lastly.
 long getLastReadTime()
          Returns the time in milliseconds when read operation occurred lastly.
 long getLastWriteTime()
          Returns the time in milliseconds when write operation occurred lastly.
 long getReadBytes()
          Returns the number of bytes read by this service
 double getReadBytesThroughput()
          Returns the number of read bytes per second.
 long getReadMessages()
          Returns the number of messages this services has read
 double getReadMessagesThroughput()
          Returns the number of read messages per second.
 long getScheduledWriteBytes()
          Returns the number of bytes that are scheduled for sending
 long getScheduledWriteMessages()
          Returns the number of messages that are scheduled for sending
 long getWrittenBytes()
          Returns the number of bytes written out by this service
 double getWrittenBytesThroughput()
          Returns the number of written bytes per second.
 long getWrittenMessages()
          Returns the number of messages this service has written
 double getWrittenMessagesThroughput()
          Returns the number of written messages per second.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteStatistics

protected RemoteStatistics(org.apache.mina.core.session.IoSession ioSession)
Method Detail

getLastIoTime

public long getLastIoTime()
Description copied from interface: SimonRemoteStatistics
Returns the time in milliseconds when I/O occurred lastly.

Specified by:
getLastIoTime in interface SimonRemoteStatistics

getLastReadTime

public long getLastReadTime()
Description copied from interface: SimonRemoteStatistics
Returns the time in milliseconds when read operation occurred lastly.

Specified by:
getLastReadTime in interface SimonRemoteStatistics

getLastWriteTime

public long getLastWriteTime()
Description copied from interface: SimonRemoteStatistics
Returns the time in milliseconds when write operation occurred lastly.

Specified by:
getLastWriteTime in interface SimonRemoteStatistics

getReadBytes

public long getReadBytes()
Description copied from interface: SimonRemoteStatistics
Returns the number of bytes read by this service

Specified by:
getReadBytes in interface SimonRemoteStatistics
Returns:
The number of bytes this service has read

getReadBytesThroughput

public double getReadBytesThroughput()
Description copied from interface: SimonRemoteStatistics
Returns the number of read bytes per second.

Specified by:
getReadBytesThroughput in interface SimonRemoteStatistics

getReadMessages

public long getReadMessages()
Description copied from interface: SimonRemoteStatistics
Returns the number of messages this services has read

Specified by:
getReadMessages in interface SimonRemoteStatistics
Returns:
The number of messages this services has read

getReadMessagesThroughput

public double getReadMessagesThroughput()
Description copied from interface: SimonRemoteStatistics
Returns the number of read messages per second.

Specified by:
getReadMessagesThroughput in interface SimonRemoteStatistics

getScheduledWriteBytes

public long getScheduledWriteBytes()
Description copied from interface: SimonRemoteStatistics
Returns the number of bytes that are scheduled for sending

Specified by:
getScheduledWriteBytes in interface SimonRemoteStatistics
Returns:
number of bytes scheduled

getScheduledWriteMessages

public long getScheduledWriteMessages()
Description copied from interface: SimonRemoteStatistics
Returns the number of messages that are scheduled for sending

Specified by:
getScheduledWriteMessages in interface SimonRemoteStatistics
Returns:
number of messages scheduled

getWrittenBytes

public long getWrittenBytes()
Description copied from interface: SimonRemoteStatistics
Returns the number of bytes written out by this service

Specified by:
getWrittenBytes in interface SimonRemoteStatistics
Returns:
The number of bytes this service has written

getWrittenBytesThroughput

public double getWrittenBytesThroughput()
Description copied from interface: SimonRemoteStatistics
Returns the number of written bytes per second.

Specified by:
getWrittenBytesThroughput in interface SimonRemoteStatistics

getWrittenMessages

public long getWrittenMessages()
Description copied from interface: SimonRemoteStatistics
Returns the number of messages this service has written

Specified by:
getWrittenMessages in interface SimonRemoteStatistics
Returns:
The number of messages this service has written

getWrittenMessagesThroughput

public double getWrittenMessagesThroughput()
Description copied from interface: SimonRemoteStatistics
Returns the number of written messages per second.

Specified by:
getWrittenMessagesThroughput in interface SimonRemoteStatistics


Copyright © 2011. All Rights Reserved.