AppController/lib/app_manager_client.rb
# Wrapper for SOAP call to the AppManager to start an process instance of
# an application server.
#
# Args:
#   app_name: Name of the application
#   app_port: The port to run the application server
#   load_balancer_ip: The public IP of the load balancer
#   load_balancer_port: The port of the load balancer
#   language: The language the application is written in
#   xmpp_ip: The IP for XMPP
#   env_vars: A Hash of environemnt variables that should be passed to the
#     application to start.
#   max_memory: An Integer that names the maximum amount of memory (in
#     megabytes) that should be used for this App Engine app.
#   syslog_server: The IP address of the remote syslog server to use.
# Returns:
#   The PID of the process started
# Note:
#   We currently send hashes over in SOAP using json because
#   of incompatibilities between SOAP mappings from ruby to python.
#   As we convert over to python we should use native dictionaries.
#
Wrapper for SOAP call to the AppManager to start an process instance of
an application server.


Wrapper for SOAP call to the AppManager to start an process instance of an application server .
def start_app(app_name,
                app_port,
                load_balancer_ip,
                language,
                xmpp_ip,
                env_vars,
                max_memory=500,
                syslog_server="")
    config = {'app_name' => app_name,
              'app_port' => app_port,
              'load_balancer_ip' => load_balancer_ip,
              'language' => language,
              'xmpp_ip' => xmpp_ip,
              'env_vars' => env_vars,
              'max_memory' => max_memory,
              'syslog_server' => syslog_server}
    json_config = JSON.dump(config)
    result = -1
    make_call(MAX_TIME_OUT, false, "start_app") {
      result = @conn.start_app(json_config)
    }
    return Integer(result)
  end
def start_app ( app_name , app_port , load_balancer_ip , language , xmpp_ip , env_vars , max_memory = 500 , syslog_server = "" ) config = { 'app_name' => app_name , 'app_port' => app_port , 'load_balancer_ip' => load_balancer_ip , 'language' => language , 'xmpp_ip' => xmpp_ip , 'env_vars' => env_vars , 'max_memory' => max_memory , 'syslog_server' => syslog_server } json_config = JSON . dump ( config ) result = - 1 make_call ( MAX_TIME_OUT , false , "start_app" ) { result = @conn . start_app ( json_config ) } return Integer ( result ) end
Wrapper for SOAP call to the AppManager to start an process instance of
an application server.
Wrapper for SOAP call to the AppManager to start an process instance of an application server .
app_name
<not_specific>
app_port
<not_specific>
load_balancer_ip
<not_specific>
language
<not_specific>
xmpp_ip
<not_specific>
env_vars
<not_specific>
max_memory
<not_specific>
syslog_server
<not_specific>