org.jboss.test.threading.mbean
Class Threads

java.lang.Object
  extended byorg.jboss.test.threading.mbean.Threads
All Implemented Interfaces:
ThreadsMBean (src)

public class Threads
extends java.lang.Object
implements ThreadsMBean (src)

This test is there to make sure that the multithreaded version doesn't lock the container It works in VM and spawns many threads that will ping the server.

See Also:

Nested Class Summary
 class Threads.Test (src)
           
 
Field Summary
 boolean runMe
           
 
Constructor Summary
Threads()
           
 
Method Summary
 int getLoops()
           
 int getNumberOfThreads()
           
 long getWait()
           
 void setLoops(int loops)
           
 void setNumberOfThreads(int numberOfThreads)
           
 void setWait(long wait)
           
 void startMe()
           
 void stopMe()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runMe

public boolean runMe
Constructor Detail

Threads

public Threads()
Method Detail

setWait

public void setWait(long wait)
Specified by:
setWait in interface ThreadsMBean (src)

getWait

public long getWait()
Specified by:
getWait in interface ThreadsMBean (src)

setLoops

public void setLoops(int loops)

getLoops

public int getLoops()

setNumberOfThreads

public void setNumberOfThreads(int numberOfThreads)
Specified by:
setNumberOfThreads in interface ThreadsMBean (src)

getNumberOfThreads

public int getNumberOfThreads()
Specified by:
getNumberOfThreads in interface ThreadsMBean (src)

startMe

public void startMe()
             throws java.lang.Exception
Specified by:
startMe in interface ThreadsMBean (src)
Throws:
java.lang.Exception

stopMe

public void stopMe()
Specified by:
stopMe in interface ThreadsMBean (src)