2.17.2: 2011-06-17

net.sf.basedb.core.signal
Class ForwardingSignalHandler

java.lang.Object
  extended by net.sf.basedb.core.signal.AbstractSignalHandler
      extended by net.sf.basedb.core.signal.ForwardingSignalHandler
All Implemented Interfaces:
SignalHandler

public class ForwardingSignalHandler
extends AbstractSignalHandler

A signal handler implementation that forwards the signal to another signal transporter.

Version:
2.6
Author:
nicklas
Last modified
$Date: 2008-09-11 22:09:17 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  SignalTransporter forwardTo
          The signal transporter to forward signals to.
private static Logger logger
          Log signals processing.
 
Constructor Summary
ForwardingSignalHandler(SignalTransporter forwardTo)
          Create a new forwarding signal handler.
 
Method Summary
 void handleSignal(Signal signal)
          Forwards the signal to the signal transporter given in the constructor.
 
Methods inherited from class net.sf.basedb.core.signal.AbstractSignalHandler
addSignal, getSupportedSignals, removeSignal, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logger logger
Log signals processing.


forwardTo

private final SignalTransporter forwardTo
The signal transporter to forward signals to.

Constructor Detail

ForwardingSignalHandler

public ForwardingSignalHandler(SignalTransporter forwardTo)
Create a new forwarding signal handler.

Parameters:
forwardTo - The signal transporter to forward signals to
Method Detail

handleSignal

public void handleSignal(Signal signal)
Forwards the signal to the signal transporter given in the constructor. This method doesn't check if the signal is supported or not.

Parameters:
signal - The signal to handle

2.17.2: 2011-06-17