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 start_soap_server()
    db_master_ip = nil
    @nodes.each { |node|
      db_master_ip = node.private_ip if node.is_db_master?
    }
    HelperFunctions.log_and_crash("db master ip was nil") if db_master_ip.nil?
    db_local_ip = my_node.private_ip
    table = @options['table']
    env_vars = {}
    env_vars['APPSCALE_HOME'] = APPSCALE_HOME
    env_vars['MASTER_IP'] = db_master_ip
    env_vars['LOCAL_DB_IP'] = db_local_ip
    if table == "simpledb"
      env_vars['SIMPLEDB_ACCESS_KEY'] = @options['SIMPLEDB_ACCESS_KEY']
      env_vars['SIMPLEDB_SECRET_KEY'] = @options['SIMPLEDB_SECRET_KEY']
    end
    soap_script = "#{APPSCALE_HOME}/AppDB/soap_server.py"
    start_cmd = ["#{PYTHON27} #{soap_script}",
            "-t #{table}"].join(' ')
    stop_cmd = "#{PYTHON27} #{APPSCALE_HOME}/scripts/stop_service.py " +
          "#{soap_script} #{PYTHON27}"
    port = UserAppClient::SERVER_PORT
    MonitInterface.start(:uaserver, start_cmd, stop_cmd, [port], env_vars,
                         start_cmd, nil, nil, nil)
  end
def start_soap_server ( ) db_master_ip = nil @nodes . each { | node | db_master_ip = node . private_ip if node . is_db_master? } HelperFunctions . log_and_crash ( "db master ip was nil" ) if db_master_ip . nil? db_local_ip = my_node . private_ip table = @options [ 'table' ] env_vars = { } env_vars [ 'APPSCALE_HOME' ] = APPSCALE_HOME env_vars [ 'MASTER_IP' ] = db_master_ip env_vars [ 'LOCAL_DB_IP' ] = db_local_ip if table == "simpledb" env_vars [ 'SIMPLEDB_ACCESS_KEY' ] = @options [ 'SIMPLEDB_ACCESS_KEY' ] env_vars [ 'SIMPLEDB_SECRET_KEY' ] = @options [ 'SIMPLEDB_SECRET_KEY' ] end soap_script = "#{APPSCALE_HOME}/AppDB/soap_server.py" start_cmd = [ "#{PYTHON27} #{soap_script}" , "-t #{table}" ] . join ( ' ' ) stop_cmd = "#{PYTHON27} #{APPSCALE_HOME}/scripts/stop_service.py " + "#{soap_script} #{PYTHON27}" port = UserAppClient :: SERVER_PORT MonitInterface . start ( :uaserver , start_cmd , stop_cmd , [ port ] , env_vars , start_cmd , nil , nil , nil ) 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 .