net.sf.basedb.core.signal
Class LocalSignalTransporter
java.lang.Object
net.sf.basedb.core.signal.AbstractSignalTransporter
net.sf.basedb.core.signal.LocalSignalTransporter
- All Implemented Interfaces:
- SignalTransporter
public class LocalSignalTransporter
- extends AbstractSignalTransporter
A signal transporter implementation that can transport signals within
the local virtual machine only. The corresponding receiver class
is LocalSignalReceiver
.
- Version:
- 2.6
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:09:17 +0200 (Thu, 11 Sep 2008) $
Field Summary |
private static Logger |
logger
Log signals processing. |
Method Summary |
void |
send(Signal signal)
Send the signal to a local signal receiver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final Logger logger
- Log signals processing.
LocalSignalTransporter
public LocalSignalTransporter()
- Create a new signal transporter instance.
send
public void send(Signal signal)
- Send the signal to a local signal receiver. This method will call
LocalSignalReceiver.getSignalReceiver(String)
to find a registered
signal receiver and then call LocalSignalReceiver.send(String, Signal)
.
The signal is sent and processed by the signal handler in the current thread.
- Parameters:
signal
- The signal to send, must not be null