json.append(stats.getCumulativeManagedSessionCount()); json.append(','); json.append(stats.getLargestManagedSessionCount()); json.append(','); json.append(stats.getLargestReadBytesThroughput()); json.append(','); json.append(stats.getLargestReadMessagesThroughput()); json.append(','); json.append(stats.getLargestWrittenBytesThroughput()); json.append(','); json.append(stats.getLargestWrittenMessagesThroughput()); json.append(','); json.append(stats.getLastIoTime()); json.append(','); json.append(stats.getLastReadTime()); json.append(','); json.append(stats.getLastWriteTime()); json.append(','); json.append(stats.getReadBytes()); json.append(',');
protected final void initSession(IoSession session, IoFuture future, IoSessionInitializer sessionInitializer) { if (stats.getLastReadTime() == 0) { stats.setLastReadTime(getActivationTime()); if (stats.getLastWriteTime() == 0) { stats.setLastWriteTime(getActivationTime());
/** * {@inheritDoc} */ @Override public int getScheduledWriteMessages() { return stats.getScheduledWriteMessages(); } }
/** * {@inheritDoc} */ @Override public int getScheduledWriteBytes() { return stats.getScheduledWriteBytes(); }
long minInterval = getThroughputCalculationIntervalInMillis();
/** * Decrease the number of scheduled message written */ private void decreaseScheduledWriteMessages() { scheduledWriteMessages.decrementAndGet(); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().decreaseScheduledWriteMessages(); } }
/** * Increase the number of scheduled message to write */ public final void increaseScheduledWriteMessages() { scheduledWriteMessages.incrementAndGet(); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().increaseScheduledWriteMessages(); } }
/** * Increase the number of scheduled write bytes for the session * * @param increment The number of newly added bytes to write */ public final void increaseScheduledWriteBytes(int increment) { scheduledWriteBytes.addAndGet(increment); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().increaseScheduledWriteBytes(increment); } }
/** * TODO Add method documentation */ public final void increaseReadMessages(long currentTime) { readMessages++; lastReadTime = currentTime; idleCountForBoth.set(0); idleCountForRead.set(0); if (getService() instanceof AbstractIoService) { getService().getStatistics().increaseReadMessages(currentTime); } }
/** * TODO Add method documentation */ public final void increaseReadBytes(long increment, long currentTime) { if (increment <= 0) { return; } readBytes += increment; lastReadTime = currentTime; idleCountForBoth.set(0); idleCountForRead.set(0); if (getService() instanceof AbstractIoService) { getService().getStatistics().increaseReadBytes(increment, currentTime); } }
protected final void initSession(IoSession session, IoFuture future, IoSessionInitializer sessionInitializer) { if (stats.getLastReadTime() == 0) { stats.setLastReadTime(getActivationTime()); if (stats.getLastWriteTime() == 0) { stats.setLastWriteTime(getActivationTime());
/** * {@inheritDoc} */ public int getScheduledWriteMessages() { return stats.getScheduledWriteMessages(); }
/** * {@inheritDoc} */ @Override public int getScheduledWriteBytes() { return stats.getScheduledWriteBytes(); }
long minInterval = getThroughputCalculationIntervalInMillis();
/** * Decrease the number of scheduled message written */ private void decreaseScheduledWriteMessages() { scheduledWriteMessages.decrementAndGet(); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().decreaseScheduledWriteMessages(); } }
/** * Increase the number of scheduled message to write */ public final void increaseScheduledWriteMessages() { scheduledWriteMessages.incrementAndGet(); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().increaseScheduledWriteMessages(); } }
/** * Increase the number of scheduled write bytes for the session * * @param increment The number of newly added bytes to write */ public final void increaseScheduledWriteBytes(int increment) { scheduledWriteBytes.addAndGet(increment); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().increaseScheduledWriteBytes(increment); } }
/** * Increase the number of read messages * * @param currentTime The current time */ public final void increaseReadMessages(long currentTime) { readMessages++; lastReadTime = currentTime; idleCountForBoth.set(0); idleCountForRead.set(0); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().increaseReadMessages(currentTime); } }
/** * Increase the number of read bytes * * @param increment The number of read bytes * @param currentTime The current time */ public final void increaseReadBytes(long increment, long currentTime) { if (increment <= 0) { return; } readBytes += increment; lastReadTime = currentTime; idleCountForBoth.set(0); idleCountForRead.set(0); if (getService() instanceof AbstractIoService) { ((AbstractIoService) getService()).getStatistics().increaseReadBytes(increment, currentTime); } }
IoFuture future, IoSessionInitializer sessionInitializer) { if (stats.getLastReadTime() == 0) { stats.setLastReadTime(getActivationTime()); if (stats.getLastWriteTime() == 0) { stats.setLastWriteTime(getActivationTime());