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 is_app_running(appname, secret)
    return BAD_SECRET_MSG unless valid_secret?(secret)
    hosters = ZKInterface.get_app_hosters(appname, @options['keyname'])
    hosters_w_appengine = []
    hosters.each { |node|
      hosters_w_appengine << node if node.is_appengine?
    }
    app_running = !hosters_w_appengine.empty?
    Djinn.log_debug("Is app #{appname} running? #{app_running}")
    return app_running
  end
def is_app_running ( appname , secret ) return BAD_SECRET_MSG unless valid_secret? ( secret ) hosters = ZKInterface . get_app_hosters ( appname , @options [ 'keyname' ] ) hosters_w_appengine = [ ] hosters . each { | node | hosters_w_appengine << node if node . is_appengine? } app_running = ! hosters_w_appengine . empty? Djinn . log_debug ( "Is app #{appname} running? #{app_running}" ) return app_running 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>
secret
<not_specific>