@PublicAPI public interface SignalApi extends Serializable
org.ow2.proactive.scheduler.synchronization
Modifier and Type | Method and Description |
---|---|
String |
checkForSignals(Set<String> signalsSubSet)
Check if any of the signals given as input exist among the set of job signals
|
void |
clearJobSignals()
Remove the entry corresponding to job signals from the signals channel
|
Set<String> |
getJobSignals()
Return the set of job signals
|
boolean |
isReceived(String signal)
Check if the given signal exists among the set of job signals
|
boolean |
readyForSignal(String signal)
Add a new signal to the set of job signals
The new signal is composed of a prefix (i.e., "ready_") and the given signal
|
boolean |
removeManySignals(Set<String> signalsSubSet)
Remove the given set of signals from job signals
|
boolean |
removeSignal(String signal)
Remove the given
signal from the set of job signals |
boolean |
sendManySignals(Set<String> signalsSubSet)
Add the given set of signals to job signals
|
boolean |
sendSignal(String signal)
Add the given
signal to the set of job signals |
void |
waitFor(String signal)
Wait until the given signal is added to the set of job signals
|
void |
waitForAll(Set<String> signalsSubSet)
Wait until all the input signals are added to the set of job signals
|
String |
waitForAny(Set<String> signalsSubSet)
Wait until one signal (among those of the given
signalsSubSet ) is added to the set of job signals |
boolean readyForSignal(String signal) throws SignalApiException
signal
- name of the signal to be addedSignalApiException
- if an error occurred while reading in the signals channel, or when adding the ready signal to job signalsboolean isReceived(String signal) throws SignalApiException
signal
- name of the signal to be checkedSignalApiException
- if an error occurred while reading in the signals channelString checkForSignals(Set<String> signalsSubSet) throws SignalApiException
signalsSubSet
- set of the signals to be checkedSignalApiException
- if an error occurred while reading in the signals channelvoid waitFor(String signal) throws SignalApiException
signal
- name of the signal to wait forSignalApiException
- if an error occurred while reading in the signals channelString waitForAny(Set<String> signalsSubSet) throws SignalApiException
signalsSubSet
) is added to the set of job signalssignalsSubSet
- set of the signals to wait for any of themSignalApiException
- if an error occurred while reading in the signals channelvoid waitForAll(Set<String> signalsSubSet) throws SignalApiException
signalsSubSet
- set of the signals to wait forSignalApiException
- if an error occurred while reading in the signals channelboolean sendSignal(String signal) throws SignalApiException
signal
to the set of job signalssignal
- name of the signal to be added to job signalsSignalApiException
- if the corresponding ready signal does not exist, or when an error occurs while sending the signalboolean sendManySignals(Set<String> signalsSubSet) throws SignalApiException
signalsSubSet
- set of the signals to be added to job signalsSignalApiException
- if an error occurred while reading in the signals channel, or when adding the signals to job signalsboolean removeSignal(String signal) throws SignalApiException
signal
from the set of job signalssignal
- name of the signal to be removed from job signalsSignalApiException
- if an error occurred while reading in the signals channel, or when removing the signal from job signalsboolean removeManySignals(Set<String> signalsSubSet) throws SignalApiException
signalsSubSet
- set of the signals to be removed from job signalsSignalApiException
- if an error occurred while reading in the signals channel, or when removing the signals from job signalsSet<String> getJobSignals() throws SignalApiException
SignalApiException
- if an error occurred while reading in the signals channelvoid clearJobSignals() throws SignalApiException
SignalApiException
- if an error occurred while reading in the signals channel, or when removing an entry from this channel