org.activemq.usecases
Class BecksNetworkTest.MessageProducerComponent

java.lang.Object
java.lang.Thread
org.activemq.usecases.BecksNetworkTest.SimulationComponent
org.activemq.usecases.BecksNetworkTest.JMSComponent
org.activemq.usecases.BecksNetworkTest.MessageProducerComponent
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- BecksNetworkTest
- private static final class BecksNetworkTest.MessageProducerComponent
- extends BecksNetworkTest.JMSComponent
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
m_numMessagesToSend
private final int m_numMessagesToSend
m_producer
private javax.jms.MessageProducer m_producer
m_url
protected final java.lang.String m_url
m_connection
protected javax.jms.Connection m_connection
m_session
protected javax.jms.Session m_session
m_queue
protected javax.jms.Queue m_queue
m_simulationState
protected final BecksNetworkTest.SimulationState m_simulationState
m_id
protected final java.lang.String m_id
BecksNetworkTest.MessageProducerComponent
public BecksNetworkTest.MessageProducerComponent(BecksNetworkTest.SimulationState state,
java.lang.String id,
java.lang.String url,
int numMessages)
_initialize
protected void _initialize()
throws javax.jms.JMSException
- Overrides:
_initialize in class BecksNetworkTest.JMSComponent
_cleanup
protected void _cleanup()
throws javax.jms.JMSException
- Overrides:
_cleanup in class BecksNetworkTest.JMSComponent
_run
public void _run()
throws javax.jms.JMSException,
java.lang.InterruptedException
- Specified by:
_run in class BecksNetworkTest.SimulationComponent
createMessageBody
private static java.lang.String createMessageBody(java.lang.String id,
int num)
getId
public java.lang.String getId()
- Description copied from class:
java.lang.Thread
- Returns the unique identifier for this thread. This ID is generated
on thread creation, and may be re-used on its death.
run
public final void run()
- Description copied from class:
java.lang.Thread
- The method of Thread that will be run if there is no Runnable object
associated with the Thread. Thread's implementation does nothing at all.