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) $
  • Field Details

    • agent

      private Agent agent
  • Constructor Details

    • AbstractCustomRequestHandler

      protected AbstractCustomRequestHandler()
  • Method Details

    • 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()