Class: StackMate::WaitCondition
- Inherits:
-
Ruote::Participant
- Object
- Ruote::Participant
- StackMate::WaitCondition
show all
- Includes:
- Logging
- Defined in:
- lib/stackmate/participants/common.rb
Constant Summary
collapse
- @@handles =
{}
- @@conditions =
[]
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Logging
configure_logger_for, #logger, logger_for
Class Method Details
.create_handle(handle_name, handle) ⇒ Object
32
33
34
|
# File 'lib/stackmate/participants/common.rb', line 32
def self.create_handle(handle_name, handle)
@@handles[handle_name] = handle
end
|
.get_conditions ⇒ Object
40
41
42
|
# File 'lib/stackmate/participants/common.rb', line 40
def self.get_conditions()
@@conditions
end
|
Instance Method Details
#on_workitem ⇒ Object
26
27
28
29
30
|
# File 'lib/stackmate/participants/common.rb', line 26
def on_workitem
logger.debug "Entering #{workitem.participant_name} "
@@conditions << self
@wi = workitem
end
|
#set_handle(handle_name) ⇒ Object
36
37
38
|
# File 'lib/stackmate/participants/common.rb', line 36
def set_handle(handle_name)
reply(@wi) if @@handles[handle_name]
end
|