|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.apache.geronimo.samples.daytrader.client.ws.ClientScenario
Web Services J2EE client for Trade.
Field Summary | |
static java.lang.String |
symbol
|
protected static boolean |
useJNDI
A flag to determine how to get the port. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ClientScenario()
|
|
ClientScenario(int reqPerThreadIn)
|
Method Summary | |
protected long |
clearStats()
|
static long |
getIntervalStartTime()
Returns the intervalStartTime. |
static long |
getMaxResp()
Returns the maxResp. |
static long |
getMinResp()
Returns the minResp. |
long |
getNumErrs()
Returns the numErrs. |
long |
getNumReqs()
Returns the numReqs. |
long |
getNumStatReqs()
Returns the numStatReqs. |
static long |
getNumThreads()
Returns the numThreads. |
static long |
getReqPerThread()
Returns the reqPerThread. |
static java.lang.String |
getServicePort()
Returns the servicePort. |
static long |
getStartTime()
Returns the startTime. |
static long |
getStatStartTime()
Returns the statStartTime. |
static long |
getTotalNumRequests()
Returns the totalNumRequests. |
static long |
getTotReqsAtLastInterval()
Returns the totReqsAtLastInterval. |
long |
getTotResp()
Returns the totResp. |
protected static TradeWSServices |
getTrade()
Get a web services port that represents the Trade services. |
static TradeWSServices |
getTradeSingleton()
|
boolean |
isStop()
Returns the stop. |
void |
run()
|
static void |
setIntervalStartTime(long intervalStartTime)
Sets the intervalStartTime. |
static void |
setMaxResp(long maxResp)
Sets the maxResp. |
static void |
setMinResp(long minResp)
Sets the minResp. |
void |
setNumErrs(long numErrs)
Sets the numErrs. |
void |
setNumReqs(long numReqs)
Sets the numReqs. |
void |
setNumStatReqs(long numStatReqs)
Sets the numStatReqs. |
static void |
setNumThreads(long numThreads)
Sets the numThreads. |
static void |
setReqPerThread(long reqPerThread)
Sets the reqPerThread. |
static void |
setServicePort(java.lang.String servicePort)
Sets the servicePort. |
static void |
setStartTime(long startTime)
Sets the startTime. |
static void |
setStatStartTime(long statStartTime)
Sets the statStartTime. |
void |
setStop(boolean stop)
Sets the stop. |
static void |
setTotReqsAtLastInterval(long totReqsAtLastInterval)
Sets the totReqsAtLastInterval. |
void |
setTotResp(long totResp)
Sets the totResp. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final boolean useJNDI
public static java.lang.String symbol
Constructor Detail |
public ClientScenario()
public ClientScenario(int reqPerThreadIn)
Method Detail |
public void run()
protected long clearStats()
protected static TradeWSServices getTrade() throws javax.xml.rpc.ServiceException, java.net.MalformedURLException
javax.xml.rpc.ServiceException
- if accessing the service or
port fails.
java.net.MalformedURLException
- if an invalid URL is obtained.public static TradeWSServices getTradeSingleton() throws java.lang.Exception
java.lang.Exception
public static long getIntervalStartTime()
public static long getMaxResp()
public static long getMinResp()
public static long getNumThreads()
public static long getReqPerThread()
public static long getStartTime()
public static long getStatStartTime()
public static long getTotReqsAtLastInterval()
public long getNumErrs()
public long getNumReqs()
public boolean isStop()
public long getTotResp()
public static void setIntervalStartTime(long intervalStartTime)
intervalStartTime
- The intervalStartTime to setpublic static void setMaxResp(long maxResp)
maxResp
- The maxResp to setpublic static void setMinResp(long minResp)
minResp
- The minResp to setpublic static void setNumThreads(long numThreads)
numThreads
- The numThreads to setpublic static void setReqPerThread(long reqPerThread)
reqPerThread
- The reqPerThread to setpublic static void setStartTime(long startTime)
startTime
- The startTime to setpublic static void setStatStartTime(long statStartTime)
statStartTime
- The statStartTime to setpublic static void setTotReqsAtLastInterval(long totReqsAtLastInterval)
totReqsAtLastInterval
- The totReqsAtLastInterval to setpublic void setNumErrs(long numErrs)
numErrs
- The numErrs to setpublic void setNumReqs(long numReqs)
numReqs
- The numReqs to setpublic void setStop(boolean stop)
stop
- The stop to setpublic void setTotResp(long totResp)
totResp
- The totResp to setpublic static long getTotalNumRequests()
public long getNumStatReqs()
public void setNumStatReqs(long numStatReqs)
numStatReqs
- The numStatReqs to setpublic static java.lang.String getServicePort()
public static void setServicePort(java.lang.String servicePort)
servicePort
- The servicePort to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |