Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Print AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Logic for starting and stopping Fabric applications.
 fabric.network disconnect_all prestoadmin.util.application Application N/A logging N/A sys N/A logger N/A N/A logging getLogger __main__ FabricApplication N/A Application N/A N/A 
    A Presto Fabric application entry point.  Provides logging and exception
    handling features.  Additionally cleans up Fabric network connections
    before exiting.
     _exit_cleanup_hook N/A N/A self N/A N/A N/A 
        Disconnect all Fabric connections in addition to shutting down the
        logging.
         N/A N/A disconnect_all N/A N/A N/A Application _exit_cleanup_hook self N/A _handle_error N/A N/A self N/A N/A N/A 
        Handle KeyboardInterrupt in a special way: don't indicate
        that it's an error.

        Returns:
            Nothing
         N/A N/A N/A self _log_exception N/A N/A isinstance N/A self exception KeyboardInterrupt N/A N/A N/A sys stderr Stopped. N/A N/A N/A sys exit 0 N/A N/A N/A N/A Application _handle_error self N/A N/A