Oracle® Coherence Java API Reference
v3.5.3

E15583-01

com.tangosol.net
Class DatagramTest.DatagramPublisher

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

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

The publisher test.


Field Summary
protected  DatagramTest.PublisherConfig m_config
           
protected  java.net.DatagramSocket m_socket
           
protected  DatagramTest.StartFlag m_startFlag
           
 
Constructor Summary
DatagramTest.DatagramPublisher(java.net.DatagramSocket socket, DatagramTest.StartFlag startFlag, DatagramTest.PublisherConfig config)
          Construct the publisher test object.
 
Method Summary
 void run()
          Run the test.
static void writeLong(byte[] aBytes, long lValue, int i)
          Write a long into a byte array
 

Field Detail

m_socket

protected java.net.DatagramSocket m_socket

m_config

protected DatagramTest.PublisherConfig m_config

m_startFlag

protected DatagramTest.StartFlag m_startFlag
Constructor Detail

DatagramTest.DatagramPublisher

public DatagramTest.DatagramPublisher(java.net.DatagramSocket socket,
                                      DatagramTest.StartFlag startFlag,
                                      DatagramTest.PublisherConfig config)
                               throws java.io.IOException
Construct the publisher test object.

Parameters:
socket - socket to use
startFlag - a flag which will delay the start of a publisher
config - structure holding publisher configuration
Throws:
java.io.IOException
Method Detail

writeLong

public static void writeLong(byte[] aBytes,
                             long lValue,
                             int i)
Write a long into a byte array

Parameters:
aBytes - the byte array to write into
lValue - the long to write
i - the index to write at

run

public void run()
Run the test.

Specified by:
run in interface java.lang.Runnable

Oracle® Coherence Java API Reference
v3.5.3

E15583-01

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