Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp.spi
Class CommandMonitorImpl

java.lang.Object
  extended by com.jivesoftware.forum.net.spi.BasicTransientMonitor
      extended by com.jivesoftware.forum.nntp.spi.CommandMonitorImpl
All Implemented Interfaces:
Monitor, CommandMonitor

public class CommandMonitorImpl
extends BasicTransientMonitor
implements CommandMonitor

Monitors samples using an underlying transient that tracks command-response pairs as a generic sample.


Constructor Summary
CommandMonitorImpl()
           
 
Method Summary
 void addSample(java.lang.String[] cmdParts, NNTPResponse response, long startTime, long stopTime)
          Sample the given NNTP command and pass the sample rate to the underlying BasicTransientMonitor.
 
Methods inherited from class com.jivesoftware.forum.net.spi.BasicTransientMonitor
addSample, addSample, getFirstSampleDate, getFrameRate, getFrameSize, getFrameTotal, getFrameTotalTime, getLastSampleDate, getRate, getTotal, getTotalTime, setFrameSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jivesoftware.forum.net.Monitor
addSample, addSample, getFirstSampleDate, getFrameRate, getFrameSize, getFrameTotal, getFrameTotalTime, getLastSampleDate, getRate, getTotal, getTotalTime, setFrameSize
 

Constructor Detail

CommandMonitorImpl

public CommandMonitorImpl()
Method Detail

addSample

public void addSample(java.lang.String[] cmdParts,
                      NNTPResponse response,
                      long startTime,
                      long stopTime)
Sample the given NNTP command and pass the sample rate to the underlying BasicTransientMonitor.

Specified by:
addSample in interface CommandMonitor
Parameters:
cmdParts - the command string broken into an array along spaces.
response - the response sent.
startTime - the time the parsing of the command was started (system time millis).
stopTime - the time the response was generated (system time millis).

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.