站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 messaging API Documentation 英文版文档

MultiplexorTest (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档


org.jboss.mq.il.uil.multiplexor
Class MultiplexorTest

java.lang.Object
  extended byorg.jboss.mq.il.uil.multiplexor.MultiplexorTest

public class MultiplexorTest
extends Object

This class is a unit tester of the StreamMux and StreamDemux classes. Starts 3 concurent readers and 3 concurent writers using 3 fully buffered object streams multiplexed over a single Pipe(Input/Output)Stream. The writers send a 10K message with a timestamp. Readers display how long the message took to arrive.

Version:
$Revision: 1.2 $
Author:
Hiram Chirino (Cojonudo14@hotmail.com)

Field Summary
static char[] PAY_LOAD
           
static int PAY_LOAD_SIZE
           
 
Constructor Summary
MultiplexorTest()
          MuxDemuxTester constructor
 
Method Summary
 void connect()
           
static void main(String[] args)
           
 void startStream(short id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAY_LOAD_SIZE

public static final int PAY_LOAD_SIZE
See Also:
Constant Field Values

PAY_LOAD

public static char[] PAY_LOAD
Constructor Detail

MultiplexorTest

public MultiplexorTest()
MuxDemuxTester constructor

Method Detail

connect

public void connect()
             throws IOException
Throws:
IOException

startStream

public void startStream(short id)
                 throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.