com.cliftonsnyder.clutch.util
Class AgentWatcher

java.lang.Object
  extended by com.cliftonsnyder.clutch.util.AgentWatcher
All Implemented Interfaces:
java.lang.Runnable

public class AgentWatcher
extends java.lang.Object
implements java.lang.Runnable

A helper class that starts Agents and then watches to see if they've completed execution or have lost their connections, restarting them in the latter case.

Author:
Clifton L. Snyder

Constructor Summary
AgentWatcher(ClutchState state)
           
 
Method Summary
 void addAgent(Agent agent)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentWatcher

public AgentWatcher(ClutchState state)
Method Detail

addAgent

public void addAgent(Agent agent)

run

public void run()
Specified by:
run in interface java.lang.Runnable