Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


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:
java.lang.Runnable
Enclosing class:
DatagramTest

public static class DatagramTest.DatagramListener
extends Base
implements java.lang.Runnable

Field Summary
protected  DatagramTest.ListenerConfig m_config
           
protected  java.io.PrintStream m_pstreamLog
           
protected  java.net.DatagramSocket m_socket
           
protected  DatagramTest.StartFlag m_startFlag
           

 

Constructor Summary
DatagramTest.DatagramListener(java.net.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(java.util.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 java.net.DatagramSocket m_socket

m_startFlag

protected DatagramTest.StartFlag m_startFlag

m_config

protected DatagramTest.ListenerConfig m_config

m_pstreamLog

protected java.io.PrintStream m_pstreamLog

Constructor Detail

DatagramTest.DatagramListener

public DatagramTest.DatagramListener(java.net.DatagramSocket socket,
                                     DatagramTest.StartFlag startFlag,
                                     DatagramTest.ListenerConfig config)
                              throws java.io.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:
java.io.IOException

Method Detail

run

public void run()
Run the test.
Specified by:
run in interface java.lang.Runnable

logHeader

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

log

protected void log(java.util.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

Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


Copyright © 2000, 2009, Oracle. All rights reserved.