uk.ac.soton.ecs.grimoires.test.throughput
Class Worker

java.lang.Object
  extended byjava.lang.Thread
      extended byuk.ac.soton.ecs.grimoires.test.throughput.Worker
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
FindServiceWorker

public abstract class Worker
extends Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Worker()
           
 
Method Summary
protected  void barrier()
           
protected  String getProperty(String name)
          Get the property value corresponding to the given property name.
 int getTransactions()
           
protected  int inc()
          Increase the finished transactions.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Worker

public Worker()
Method Detail

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