mapreduce/main.py
def create_application():
  """Create new WSGIApplication and register all handlers.

  Returns:
    an instance of webapp.WSGIApplication with all mapreduce handlers
    registered.
  """
  return webapp.WSGIApplication([

      # Task queue handlers.
      (r".*/worker_callback", handlers.MapperWorkerCallbackHandler),
      (r".*/controller_callback", handlers.ControllerCallbackHandler),
      (r".*/kickoffjob_callback", handlers.KickOffJobHandler),

      # RPC requests with JSON responses
      (r".*/command/start_job", handlers.StartJobHandler),
      (r".*/command/cleanup_job", handlers.CleanUpJobHandler),
      (r".*/command/abort_job", handlers.AbortJobHandler),
      (r".*/command/list_configs", status.ListConfigsHandler),
      (r".*/command/list_jobs", status.ListJobsHandler),
      (r".*/command/get_job_detail", status.GetJobDetailHandler),

      # Catch all redirects to status page.
      (r"/[^/]+(?:/)?", RedirectHandler),

      # UI static files
      (r".+/([a-zA-Z0-9]+(?:\.(?:css|js))?)", status.ResourceHandler),
  ],
  debug=True)
Create new WSGIApplication and register all handlers.

  Returns:
    an instance of webapp.WSGIApplication with all mapreduce handlers
    registered.
  
Create new WSGIApplication and register all handlers.
Create new WSGIApplication and register all handlers .
def create_application():
  return webapp.WSGIApplication([
      (r".*/worker_callback", handlers.MapperWorkerCallbackHandler),
      (r".*/controller_callback", handlers.ControllerCallbackHandler),
      (r".*/kickoffjob_callback", handlers.KickOffJobHandler),
      (r".*/command/start_job", handlers.StartJobHandler),
      (r".*/command/cleanup_job", handlers.CleanUpJobHandler),
      (r".*/command/abort_job", handlers.AbortJobHandler),
      (r".*/command/list_configs", status.ListConfigsHandler),
      (r".*/command/list_jobs", status.ListJobsHandler),
      (r".*/command/get_job_detail", status.GetJobDetailHandler),
      (r"/[^/]+(?:/)?", RedirectHandler),
      (r".+/([a-zA-Z0-9]+(?:\.(?:css|js))?)", status.ResourceHandler),
  ],
  debug=True)
def create_application ( ) : return webapp . WSGIApplication ( [ ( r".*/worker_callback" , handlers . MapperWorkerCallbackHandler ) , ( r".*/controller_callback" , handlers . ControllerCallbackHandler ) , ( r".*/kickoffjob_callback" , handlers . KickOffJobHandler ) , ( r".*/command/start_job" , handlers . StartJobHandler ) , ( r".*/command/cleanup_job" , handlers . CleanUpJobHandler ) , ( r".*/command/abort_job" , handlers . AbortJobHandler ) , ( r".*/command/list_configs" , status . ListConfigsHandler ) , ( r".*/command/list_jobs" , status . ListJobsHandler ) , ( r".*/command/get_job_detail" , status . GetJobDetailHandler ) , ( r"/[^/]+(?:/)?" , RedirectHandler ) , ( r".+/([a-zA-Z0-9]+(?:\.(?:css|js))?)" , status . ResourceHandler ) , ] , debug = True )
Create new WSGIApplication and register all handlers.
Create new WSGIApplication and register all handlers .
"""Create new WSGIApplication and register all handlers.

  Returns:
    an instance of webapp.WSGIApplication with all mapreduce handlers
    registered.
  """ # Task queue handlers. # RPC requests with JSON responses # Catch all redirects to status page. # UI static files
an instance of webapp.WSGIApplication with all mapreduce handlers
registered.
an instance of webapp . WSGIApplication with all mapreduce handlers registered .