2.17.2: 2011-06-17

net.sf.basedb.clients.jobagent.handlers
Class AbstractCustomRequestHandler

java.lang.Object
  extended by net.sf.basedb.clients.jobagent.handlers.AbstractCustomRequestHandler
All Implemented Interfaces:
CustomRequestHandler, RequestHandler

public abstract class AbstractCustomRequestHandler
extends Object
implements CustomRequestHandler

Abstract base class for custom request handler implementations. This class implements the init() and close() methods, leaving the handleCmd() method for the actual subclass.

Since:
2.16
Author:
Nicklas
Last modified
$Date: 2010-10-15 13:59:00 +0200 (Fri, 15 Oct 2010) $

Field Summary
private  Agent agent
           
 
Constructor Summary
protected AbstractCustomRequestHandler()
           
 
Method Summary
 void close()
          This method is called at when the agent is stopped.
protected  Agent getAgent()
           
 void init(Agent agent)
          Initialize the request handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.util.jobagent.RequestHandler
handleCmd
 

Field Detail

agent

private Agent agent
Constructor Detail

AbstractCustomRequestHandler

protected AbstractCustomRequestHandler()
Method Detail

init

public void init(Agent agent)
Description copied from interface: CustomRequestHandler
Initialize the request handler. This method is called once immediately after the object has been created.

Specified by:
init in interface CustomRequestHandler
Parameters:
agent - The agent

close

public void close()
Description copied from interface: CustomRequestHandler
This method is called at when the agent is stopped.

Specified by:
close in interface CustomRequestHandler

getAgent

protected Agent getAgent()

2.17.2: 2011-06-17