public class TestControlChannel extends XmlControlChannel implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
static int |
DT_DISABLE |
static int |
DT_MAX_INTERVAL_MS |
static int |
DT_MIN_INTERVAL_MS |
private boolean |
m_bRun
Stores whether the internal thread shall work (true) or come to the end
(false).
|
private java.lang.Object |
m_internalSynchronization |
private long |
m_interval
Stores the dummy traffic interval in milliseconds.
|
private java.lang.Thread |
m_threadRunLoop
Stores the instance of the internal dummy traffic thread.
|
m_parentMultiplexer| Constructor and Description |
|---|
TestControlChannel(Multiplexer a_multiplexer,
IServiceContainer a_serviceContainer)
Creates a new DummyTrafficControlChannel instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
processXmlMessage(org.w3c.dom.Document doc)
This method is called by the multiplexer, if a packet is received on the
test control channel.
|
void |
run()
This is the implementation for the dummy traffic thread.
|
void |
setMessageInterval(int a_interval)
Changes the dummy traffic interval.
|
private void |
start()
Starts the internal dummy traffic thread, if it is not already running.
|
void |
stop()
Holds the internal dummy traffic thread.
|
processMessage, sendXmlMessageprocessPacketData, sendByteMessagegetServiceContainer, isSending, processReceivedPacket, sendRawMessagecreateEmptyMixPacket, deleteChannel, isClosed, multiplexerClosed, sendPacketpublic static final int DT_MIN_INTERVAL_MS
public static final int DT_MAX_INTERVAL_MS
public static final int DT_DISABLE
private volatile boolean m_bRun
private java.lang.Thread m_threadRunLoop
private long m_interval
private java.lang.Object m_internalSynchronization
public TestControlChannel(Multiplexer a_multiplexer, IServiceContainer a_serviceContainer)
public void run()
run in interface java.lang.Runnablepublic void stop()
public void setMessageInterval(int a_interval)
a_interval - The new dummy traffic interval in milliseconds or -1,
if dummy traffic shall be disabled.protected void processXmlMessage(org.w3c.dom.Document doc)
processXmlMessage in class XmlControlChannela_packet - The data within the received packet (should be random
bytes).private void start()
Copyright © 2023. All rights reserved.