lib/cloud_crowd/node.rb
# Checking in with the central server informs it of the location and 
# configuration of this Node. If it can't check-in, there's no point in 
# starting.
Checking in with the central server informs it of the location and
configuration of this Node. If it can't check-in, there's no point in
starting.
Checking in with the central server informs it of the location and configuration of this Node . If it can ' t check - in there ' s no point in starting .
def check_in(critical=false)
      @central["/node/#{@host}"].put(
        :port             => @port,
        :busy             => @overloaded,
        :max_workers      => CloudCrowd.config[:max_workers],
        :enabled_actions  => @enabled_actions.join(',')
      )
    rescue RestClient::Exception, Errno::ECONNREFUSED
      puts "Failed to connect to the central server (#{@central.to_s})."
      raise SystemExit if critical
    end
def check_in ( critical = false ) @central [ "/node/#{@host}" ] . put ( :port => @port , :busy => @overloaded , :max_workers => CloudCrowd . config [ :max_workers ] , :enabled_actions => @enabled_actions . join ( ',' ) ) rescue RestClient :: Exception , Errno :: ECONNREFUSED puts "Failed to connect to the central server (#{@central.to_s})." raise SystemExit if critical end
Checking in with the central server informs it of the location and
configuration of this Node.
Checking in with the central server informs it of the location and configuration of this Node .
critical
<not_specific>