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 (fr, 15 okt 2010) $
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCustomRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
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 interfaceCustomRequestHandler
- 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 interfaceCustomRequestHandler
-
getAgent
protected Agent getAgent()
-
-