uk.ac.soton.ecs.grimoires.test.throughput
Class Worker
java.lang.Object
java.lang.Thread
uk.ac.soton.ecs.grimoires.test.throughput.Worker
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- FindServiceWorker
- public abstract class Worker
- extends Thread
| 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, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Worker
public Worker()
getTransactions
public int getTransactions()
- Returns:
- Returns the transactions.
inc
protected int inc()
- Increase the finished transactions.
- Returns:
- the current finished transactions
getProperty
protected String getProperty(String name)
- Get the property value corresponding to the given property name.
- Parameters:
name - property name
- Returns:
barrier
protected void barrier()
throws InterruptedException,
BrokenBarrierException
- Throws:
InterruptedException
BrokenBarrierException