AppController/djinn.rb
# Queries the UserAppServer to see if the named application exists,
# and if it is listening to any port.
#
# Args:
#   appname: The name of the app that we should check for existence.
# Returns:
#   A boolean indicating whether or not the user application exists.
Queries the UserAppServer to see if the named application exists,
and if it is listening to any port.

The name of the app that we should check for existence.
Returns:
A boolean indicating whether or not the user application exists.
Queries the UserAppServer to see if the named application exists and if it is listening to any port . The name of the app that we should check for existence . Returns : A boolean indicating whether or not the user application exists .
def does_app_exist(appname, secret)
    return BAD_SECRET_MSG unless valid_secret?(secret)
    begin
      uac = UserAppClient.new(my_node.private_ip, @@secret)
      return uac.does_app_exist?(appname)
    rescue FailedNodeException
      Djinn.log_warn("Failed to talk to the UserAppServer to check if the  " +
        "application #{appname} exists")
    end
  end
def does_app_exist ( appname , secret ) return BAD_SECRET_MSG unless valid_secret? ( secret ) begin uac = UserAppClient . new ( my_node . private_ip , @@secret ) return uac . does_app_exist? ( appname ) rescue FailedNodeException Djinn . log_warn ( "Failed to talk to the UserAppServer to check if the  " + "application #{appname} exists" ) end end
Queries the UserAppServer to see if the named application exists,
and if it is listening to any port.
Queries the UserAppServer to see if the named application exists and if it is listening to any port .
appname
<not_specific>
secret
<not_specific>