Class MCollective::Agents
In: lib/mcollective/agents.rb
Parent: Object

A collection of agents, loads them, reloads them and dispatches messages to them. It uses the PluginManager to store, load and manage instances of plugins.

Methods

Public Class methods

Get a list of agents that we have

Public Instance methods

Checks if a plugin should be activated by calling activate? on it if it responds to that method else always activate it

Builds a class name string given a Agent name

Deletes all agents

Dispatches a message to an agent, accepts a block that will get run if there are any replies to process from the agent

searches the libdirs for agents

Determines if we have an agent with a certain name

Loads a specified agent from disk if available

Loads all agents from disk

[Validate]