org.jwarp.service.work
Class ATool

java.lang.Object
  |
  +--org.jwarp.service.work.ATool
All Implemented Interfaces:
ITool
Direct Known Subclasses:
TestTool

public abstract class ATool
extends java.lang.Object
implements ITool


Field Summary
protected  long effectiveEnd
           
protected  long effectiveStart
           
protected  java.lang.String name
           
protected  long runTime
           
 
Constructor Summary
ATool(java.lang.String name)
           
 
Method Summary
abstract  void doWork()
          Run the tool using the concrete parameters passed.
 java.lang.String getName()
           
 long getRuntime()
           
 void started()
           
 void stopped()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jwarp.service.work.ITool
getParameters
 

Field Detail

name

protected java.lang.String name

runTime

protected long runTime

effectiveStart

protected long effectiveStart

effectiveEnd

protected long effectiveEnd
Constructor Detail

ATool

public ATool(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ITool

doWork

public abstract void doWork()
                     throws ToolRunException
Run the tool using the concrete parameters passed.
Specified by:
doWork in interface ITool
Returns:
The tools result or null.

started

public void started()
Specified by:
started in interface ITool

stopped

public void stopped()
Specified by:
stopped in interface ITool

getRuntime

public long getRuntime()
Specified by:
getRuntime in interface ITool

©   O R C A   S y s t e m s