net.sf.basedb.clients.jobagent.handlers
Class AbstractCustomRequestHandler
java.lang.Object
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) $
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 |
agent
private Agent agent
AbstractCustomRequestHandler
protected AbstractCustomRequestHandler()
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()