Module: BigBrother

Defined in:
lib/big_brother.rb,
lib/big_brother/app.rb,
lib/big_brother/cli.rb,
lib/big_brother/ipvs.rb,
lib/big_brother/node.rb,
lib/big_brother/logger.rb,
lib/big_brother/nagios.rb,
lib/big_brother/ticker.rb,
lib/big_brother/cluster.rb,
lib/big_brother/version.rb,
lib/big_brother/status_file.rb,
lib/big_brother/configuration.rb,
lib/big_brother/health_fetcher.rb,
lib/big_brother/shell_executor.rb,
lib/big_brother/cluster_factory.rb,
lib/big_brother/cluster_collection.rb,
lib/big_brother/active_active_cluster.rb,
lib/big_brother/active_passive_cluster.rb

Defined Under Namespace

Classes: ActiveActiveCluster, ActivePassiveCluster, App, CLI, Cluster, ClusterCollection, ClusterFactory, Configuration, HealthFetcher, IPVS, Logger, Nagios, Node, ShellExecutor, StatusFile, Ticker

Constant Summary collapse

VERSION =
"0.8.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clustersObject

Returns the value of attribute clusters.



34
35
36
# File 'lib/big_brother.rb', line 34

def clusters
  @clusters
end

.config_dirObject

Returns the value of attribute config_dir.



34
35
36
# File 'lib/big_brother.rb', line 34

def config_dir
  @config_dir
end

.ipvsObject

Returns the value of attribute ipvs.



34
35
36
# File 'lib/big_brother.rb', line 34

def ipvs
  @ipvs
end

.loggerObject

Returns the value of attribute logger.



34
35
36
# File 'lib/big_brother.rb', line 34

def logger
  @logger
end

.nagiosObject

Returns the value of attribute nagios.



34
35
36
# File 'lib/big_brother.rb', line 34

def nagios
  @nagios
end

Class Method Details

.configure(filename) ⇒ Object



42
43
44
45
# File 'lib/big_brother.rb', line 42

def self.configure(filename)
  @config_file = filename
  @clusters.config(BigBrother::Configuration.from_file(filename))
end

.reconfigureObject



51
52
53
54
55
# File 'lib/big_brother.rb', line 51

def self.reconfigure
  Ticker.pause do
    configure(@config_file)
  end
end

.start_ticker!Object



47
48
49
# File 'lib/big_brother.rb', line 47

def self.start_ticker!
  Ticker.schedule!
end