Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net
Class DatagramTest.DatagramListener

    java.lang.Object
      com.tangosol.util.Base
          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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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