Module: Wakame

Included in:
Command::ControlService, Command::PropagateResource, Command::PropagateService
Defined in:
lib/wakame.rb,
lib/wakame/util.rb,
lib/wakame/actor.rb,
lib/wakame/agent.rb,
lib/wakame/event.rb,
lib/wakame/graph.rb,
lib/wakame/action.rb,
lib/wakame/logger.rb,
lib/wakame/master.rb,
lib/wakame/command.rb,
lib/wakame/monitor.rb,
lib/wakame/monitor.rb,
lib/wakame/packets.rb,
lib/wakame/service.rb,
lib/wakame/service.rb,
lib/wakame/trigger.rb,
lib/wakame/template.rb,
lib/wakame/daemonize.rb,
lib/wakame/scheduler.rb,
lib/wakame/status_db.rb,
lib/wakame/amqp_client.rb,
lib/wakame/initializer.rb,
lib/wakame/actions/util.rb,
lib/wakame/runner/agent.rb,
lib/wakame/agent_manager.rb,
lib/wakame/configuration.rb,
lib/wakame/queue_declare.rb,
lib/wakame/runner/master.rb,
lib/wakame/master_manager.rb,
lib/wakame/event_dispatcher.rb,
lib/wakame/instance_counter.rb,
lib/wakame/actions/launch_vm.rb,
lib/wakame/models/agent_pool.rb,
lib/wakame/actions/shutdown_vm.rb,
lib/wakame/models/object_store.rb,
lib/wakame/actions/stop_service.rb,
lib/wakame/actions/deploy_config.rb,
lib/wakame/actions/start_service.rb,
lib/wakame/actions/freeze_cluster.rb,
lib/wakame/actions/launch_cluster.rb,
lib/wakame/actions/register_agent.rb,
lib/wakame/actions/reload_service.rb,
lib/wakame/actions/migrate_service.rb,
lib/wakame/actions/shutdown_cluster.rb,
lib/wakame/actions/unfreeze_cluster.rb,
lib/wakame/actions/destroy_instances.rb,
lib/wakame/actions/propagate_service.rb,
lib/wakame/actions/deploy_application.rb,
lib/wakame/actions/propagate_resource.rb,
lib/wakame/models/service_cluster_pool.rb,
lib/wakame/triggers/shutdown_unused_vm.rb,
lib/wakame/actions/notify_child_changed.rb,
lib/wakame/agent_managers/actor_manager.rb,
lib/wakame/runner/administrator_command.rb,
lib/wakame/actions/notify_parent_changed.rb,
lib/wakame/master_managers/agent_monitor.rb,
lib/wakame/master_managers/command_queue.rb,
lib/wakame/models/application_repository.rb,
lib/wakame/agent_managers/monitor_manager.rb,
lib/wakame/master_managers/action_manager.rb,
lib/wakame/triggers/instance_count_update.rb,
lib/wakame/actions/scaleout_when_high_load.rb,
lib/wakame/master_managers/cluster_manager.rb,
lib/wakame/triggers/maintain_ssh_known_hosts.rb

Defined Under Namespace

Modules: AMQPClient, Actions, Actor, AgentManager, AgentManagers, Cli, Command, Daemonize, Event, Logger, MasterManager, MasterManagers, Models, Monitor, Packets, QueueDeclare, Runner, Service, StatusDB, Triggers, Util Classes: Action, ActorRequest, Agent, CancelActionError, CancelBroadcast, Configuration, ConstantCounter, EventDispatcher, GlobalLockError, Graph, Initializer, InstanceCounter, JsonRequester, Master, Scheduler, Template, TimedCounter, Trigger

Constant Summary collapse

VERSION =
Jeweler::VersionHelper.new(File.expand_path('../', File.dirname(__FILE__))).to_s
ED =
EventDispatcher

Class Method Summary collapse

Class Method Details

.configObject



62
63
64
# File 'lib/wakame.rb', line 62

def config
  Initializer.instance.configuration
end

.environmentObject



66
67
68
# File 'lib/wakame.rb', line 66

def environment
  config.environment
end

.gen_id(str = nil) ⇒ Object

autoload :Initializer, ‘wakame/initializer’ # Do not autoload this class since the constant is used for the flag in bootstrap.



51
52
53
# File 'lib/wakame.rb', line 51

def gen_id(str=nil)
  Util.gen_id(str)
end

.logObject



55
56
57
# File 'lib/wakame.rb', line 55

def log
  Logger.log
end

.new_(class_or_str) ⇒ Object



70
71
72
# File 'lib/wakame.rb', line 70

def new_(class_or_str)
  Util.new_(class_or_str)
end