AppController/djinn.rb
# An Array of DjinnJobData objects, each of which containing information about
# a node in the currently running AppScale deployment.
An Array of DjinnJobData objects, each of which containing information about
a node in the currently running AppScale deployment.
An Array of DjinnJobData objects each of which containing information about a node in the currently running AppScale deployment .
def done_uploading(appname, location, secret)
    return BAD_SECRET_MSG unless valid_secret?(secret)
    if File.exists?(location)
      begin
        ZKInterface.add_app_entry(appname, my_node.public_ip, location)
        uac = UserAppClient.new(my_node.private_ip, @@secret)
        uac.enable_app(appname)
        result = "Found #{appname} in zookeeper."
      rescue FailedZooKeeperOperationException => e
        Djinn.log_warn("(done_uploading) couldn't talk to zookeeper " +
          "with #{e.message}.")
        result = "Unknown status for #{appname}: please retry."
      end
    else
      result = "The #{appname} app was not found at #{location}."
    end
    Djinn.log_debug(result)
    return result
  end
def done_uploading ( appname , location , secret ) return BAD_SECRET_MSG unless valid_secret? ( secret ) if File . exists? ( location ) begin ZKInterface . add_app_entry ( appname , my_node . public_ip , location ) uac = UserAppClient . new ( my_node . private_ip , @@secret ) uac . enable_app ( appname ) result = "Found #{appname} in zookeeper." rescue FailedZooKeeperOperationException => e Djinn . log_warn ( "(done_uploading) couldn't talk to zookeeper " + "with #{e.message}." ) result = "Unknown status for #{appname}: please retry." end else result = "The #{appname} app was not found at #{location}." end Djinn . log_debug ( result ) return result end
An Array of DjinnJobData objects, each of which containing information about
a node in the currently running AppScale deployment.
An Array of DjinnJobData objects each of which containing information about a node in the currently running AppScale deployment .
appname
<not_specific>
location
<not_specific>
secret
<not_specific>