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
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: 2014-04-09 14:21:20 +0200 (on, 09 apr 2014) $
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.sf.basedb.core.signal.AbstractSignalTransporter
generateSignalMessage, getGlobalSignalId, getHandlerId, getReceiverId, getSignalURI, getSupportedSignals, init
-
Field Details
-
logger
Log signals processing.
-
-
Constructor Details
-
LocalSignalTransporter
public LocalSignalTransporter()Create a new signal transporter instance.
-
-
Method Details
-
send
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
-