net.grinder.engine.agent
Class AgentDaemon

java.lang.Object
  extended by net.grinder.engine.agent.AgentDaemon
All Implemented Interfaces:
Agent

public final class AgentDaemon
extends Object
implements Agent

Agent Daemon. This is a wrapper for an Agent. It runs like a daemon and if Agent finishes its work it sleeps and runs it again.

Author:
Pawel Lacinski, Philip Aston

Constructor Summary
AgentDaemon(org.slf4j.Logger logger, long sleepTime, Agent agent)
          Constructor for AgentDaemon.
 
Method Summary
 void run()
          Start the agent.
 void shutdown()
          Shut down the agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentDaemon

public AgentDaemon(org.slf4j.Logger logger,
                   long sleepTime,
                   Agent agent)
Constructor for AgentDaemon.

Parameters:
logger - A Logger.
sleepTime - Time in milliseconds between connection attempts.
agent - Delegate Agent that we want to run.
Method Detail

run

public void run()
         throws GrinderException
Start the agent.

Specified by:
run in interface Agent
Throws:
GrinderException - If an error occurs.

shutdown

public void shutdown()
Shut down the agent.

Specified by:
shutdown in interface Agent


Copyright © 2000-2013. All Rights Reserved.