parameters: (req, body)
docstring: Handler function for hostInfoReq commands. Will connect to the specified
      host through a remote.ClusterHost object to retrieve information.
      req - top level message object
      body - shortcut to the body part of the message
docstring_summary: Handler function for hostInfoReq commands. Will connect to the specified
      host through a remote.ClusterHost object to retrieve information.
      req - top level message object
      body - shortcut to the body part of the message
docstring_tokens: Handler function for hostInfoReq commands . Will connect to the specified host through a remote . ClusterHost object to retrieve information . req - top level message object body - shortcut to the body part of the message
function: def handle_hostInfoReq(req, body):
      """Handler function for hostInfoReq commands. Will connect to the specified
      host through a remote.ClusterHost object to retrieve information.
      req - top level message object
      body - shortcut to the body part of the message
      """
      
      (user, pwd) = get_cred(body)
      with produce_ABClusterHost(body['hostName'], user, pwd) as ch:
          return make_rep(req, { 'host': {'name': ch.host },
                                 'hostRes': {'ram':ch.ram, 
                                             'cores': ch.cores, 
                                             'uname': ch.hostInfo.uname,
                                             'installdir': ch.installdir, 
                                             'datadir': ch.hostInfo.pm.join(ch.homedir, 'MySQL_Cluster') }})
function_tokens: def handle_hostInfoReq ( req , body ) : ( user , pwd ) = get_cred ( body ) with produce_ABClusterHost ( body [ 'hostName' ] , user , pwd ) as ch : return make_rep ( req , { 'host' : { 'name' : ch . host } , 'hostRes' : { 'ram' : ch . ram , 'cores' : ch . cores , 'uname' : ch . hostInfo . uname , 'installdir' : ch . installdir , 'datadir' : ch . hostInfo . pm . join ( ch . homedir , 'MySQL_Cluster' ) } } )