Package 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 isLocalSignalReceiver
.- Version:
- 2.6
- Author:
- nicklas
- Last modified
- $Date: 2014-04-09 14:21:20 +0200 (on, 09 apr 2014) $
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
Log signals processing.
-
Constructor Summary
Constructors Constructor Description LocalSignalTransporter()
Create a new signal transporter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(Signal signal)
Send the signal to a local signal receiver.-
Methods inherited from class net.sf.basedb.core.signal.AbstractSignalTransporter
generateSignalMessage, getGlobalSignalId, getHandlerId, getReceiverId, getSignalURI, getSupportedSignals, init
-
-
-
-
Method Detail
-
send
public void send(Signal signal)
Send the signal to a local signal receiver. This method will callLocalSignalReceiver.getSignalReceiver(String)
to find a registered signal receiver and then callLocalSignalReceiver.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
-
-