CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.net
Class DatagramTest.DatagramListener

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.net.DatagramTest.DatagramListener
All Implemented Interfaces:
Runnable
Enclosing class:
DatagramTest

public static class DatagramTest.DatagramListener
extends Base
implements Runnable


Field Summary
protected  DatagramTest.ListenerConfig m_config
           
protected  PrintStream m_pstreamLog
           
protected  DatagramSocket m_socket
           
protected  DatagramTest.StartFlag m_startFlag
           
 
Constructor Summary
DatagramTest.DatagramListener(DatagramSocket socket, DatagramTest.StartFlag startFlag, DatagramTest.ListenerConfig config)
          Construct the listener test object.
 
Method Summary
protected  void log(DatagramTest.PacketTracker tracker)
          Log the performance data from a single tracker to the log.
protected  void log(Map mapTracker)
          Log the performance data for trackers to the log.
protected  void logHeader()
          Output a header to the tabular log.
 void run()
          Run the test.
 

Field Detail

m_socket

protected DatagramSocket m_socket

m_startFlag

protected DatagramTest.StartFlag m_startFlag

m_config

protected DatagramTest.ListenerConfig m_config

m_pstreamLog

protected PrintStream m_pstreamLog
Constructor Detail

DatagramTest.DatagramListener

public DatagramTest.DatagramListener(DatagramSocket socket,
                                     DatagramTest.StartFlag startFlag,
                                     DatagramTest.ListenerConfig config)
                              throws IOException
Construct the listener test object.

Parameters:
socket - socket to use
startFlag - a flag which will inform a polite publisher that it is ok to start
config - structure holding listener configuration
Throws:
IOException
Method Detail

run

public void run()
Run the test.

Specified by:
run in interface Runnable

logHeader

protected void logHeader()
Output a header to the tabular log.


log

protected void log(Map mapTracker)
Log the performance data for trackers to the log.

Parameters:
mapTracker - a map of lifetime trackers keyed on sender address

log

protected void log(DatagramTest.PacketTracker tracker)
Log the performance data from a single tracker to the log.

Parameters:
tracker - the tracker data to append to the log

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation