Package host.anzo.simon
Class RemoteStatistics
java.lang.Object
host.anzo.simon.RemoteStatistics
- All Implemented Interfaces:
SimonRemoteStatistics
A simple implementation of
SimonRemoteStatistics-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRemoteStatistics(org.apache.mina.core.session.IoSession ioSession) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the time in milliseconds when I/O occurred lastly.longReturns the time in milliseconds when read operation occurred lastly.longReturns the time in milliseconds when write operation occurred lastly.longReturns the number of bytes read by this servicedoubleReturns the number of read bytes per second.longReturns the number of messages this services has readdoubleReturns the number of read messages per second.longReturns the number of bytes that are scheduled for sendinglongReturns the number of messages that are scheduled for sendinglongReturns the number of bytes written out by this servicedoubleReturns the number of written bytes per second.longReturns the number of messages this service has writtendoubleReturns the number of written messages per second.
-
Constructor Details
-
RemoteStatistics
protected RemoteStatistics(org.apache.mina.core.session.IoSession ioSession)
-
-
Method Details
-
getLastIoTime
public long getLastIoTime()Description copied from interface:SimonRemoteStatisticsReturns the time in milliseconds when I/O occurred lastly.- Specified by:
getLastIoTimein interfaceSimonRemoteStatistics
-
getLastReadTime
public long getLastReadTime()Description copied from interface:SimonRemoteStatisticsReturns the time in milliseconds when read operation occurred lastly.- Specified by:
getLastReadTimein interfaceSimonRemoteStatistics
-
getLastWriteTime
public long getLastWriteTime()Description copied from interface:SimonRemoteStatisticsReturns the time in milliseconds when write operation occurred lastly.- Specified by:
getLastWriteTimein interfaceSimonRemoteStatistics
-
getReadBytes
public long getReadBytes()Description copied from interface:SimonRemoteStatisticsReturns the number of bytes read by this service- Specified by:
getReadBytesin interfaceSimonRemoteStatistics- Returns:
- The number of bytes this service has read
-
getReadBytesThroughput
public double getReadBytesThroughput()Description copied from interface:SimonRemoteStatisticsReturns the number of read bytes per second.- Specified by:
getReadBytesThroughputin interfaceSimonRemoteStatistics
-
getReadMessages
public long getReadMessages()Description copied from interface:SimonRemoteStatisticsReturns the number of messages this services has read- Specified by:
getReadMessagesin interfaceSimonRemoteStatistics- Returns:
- The number of messages this services has read
-
getReadMessagesThroughput
public double getReadMessagesThroughput()Description copied from interface:SimonRemoteStatisticsReturns the number of read messages per second.- Specified by:
getReadMessagesThroughputin interfaceSimonRemoteStatistics
-
getScheduledWriteBytes
public long getScheduledWriteBytes()Description copied from interface:SimonRemoteStatisticsReturns the number of bytes that are scheduled for sending- Specified by:
getScheduledWriteBytesin interfaceSimonRemoteStatistics- Returns:
- number of bytes scheduled
-
getScheduledWriteMessages
public long getScheduledWriteMessages()Description copied from interface:SimonRemoteStatisticsReturns the number of messages that are scheduled for sending- Specified by:
getScheduledWriteMessagesin interfaceSimonRemoteStatistics- Returns:
- number of messages scheduled
-
getWrittenBytes
public long getWrittenBytes()Description copied from interface:SimonRemoteStatisticsReturns the number of bytes written out by this service- Specified by:
getWrittenBytesin interfaceSimonRemoteStatistics- Returns:
- The number of bytes this service has written
-
getWrittenBytesThroughput
public double getWrittenBytesThroughput()Description copied from interface:SimonRemoteStatisticsReturns the number of written bytes per second.- Specified by:
getWrittenBytesThroughputin interfaceSimonRemoteStatistics
-
getWrittenMessages
public long getWrittenMessages()Description copied from interface:SimonRemoteStatisticsReturns the number of messages this service has written- Specified by:
getWrittenMessagesin interfaceSimonRemoteStatistics- Returns:
- The number of messages this service has written
-
getWrittenMessagesThroughput
public double getWrittenMessagesThroughput()Description copied from interface:SimonRemoteStatisticsReturns the number of written messages per second.- Specified by:
getWrittenMessagesThroughputin interfaceSimonRemoteStatistics
-