Class | God::Task |
In: |
lib/god/task.rb
|
Parent: | Object |
autostart | [W] | Public: Sets whether the task should autostart when god starts. Defaults to true (enabled). |
behaviors | [RW] | api |
directory | [RW] | api |
driver | [RW] | Gets/Sets the Driver for this task. |
group | [RW] | Public: Gets/Sets the String group name of the task. |
initial_state | [RW] | Public: Gets/Sets the Symbol initial state of the state machine. |
interval | [RW] | Public: Gets/Sets the Numeric default interval to be used between poll events. |
metrics | [RW] | api |
name | [RW] | Public: Gets/Sets the String name of the task. |
state | [RW] | api |
valid_states | [RW] | Public: Gets/Sets the Array of Symbol valid states for the state machine. |
Convert the given input into canonical hash form which looks like:
{ true => :state } or { true => :state, false => :otherstate }
to - The Symbol or Hash destination.
Returns the canonical Hash.
Public: Define a lifecycle handler. Conditions that belong to a lifecycle are active as long as the process is being monitored.
Returns nothing.
Notify all recipients of the given condition with the specified message.
condition - The Condition. message - The String message to send.
Returns nothing.
Public: Define a transition handler which consists of a set of conditions
start_states - The Symbol or Array of Symbols start state(s). end_states - The Symbol or Hash end states.
Yields the Metric for this transition.
Returns nothing.