Revision 14d30d82 src/rm/RequestManagerHost.cc

View differences:

src/rm/RequestManagerHost.cc
67 67
/* -------------------------------------------------------------------------- */
68 68
/* -------------------------------------------------------------------------- */
69 69

  
70
void HostMonitoring::request_execute(
71
        xmlrpc_c::paramList const&  paramList,
72
        RequestAttributes&          att)
73
{
74
    int id  = xmlrpc_c::value_int(paramList.getInt(1));
75

  
76
    ostringstream   oss;
77
    string          where;
78
    int             rc;
79

  
80
    if ( basic_authorization(id, att) == false )
81
    {
82
        return;
83
    }
84

  
85
    oss << "oid = " << id;
86

  
87
    where = oss.str();
88

  
89
    oss.str("");
90

  
91
    rc = (static_cast<HostPool *>(pool))->dump_monitoring(oss, where);
92

  
93
    if ( rc != 0 )
94
    {
95
        failure_response(INTERNAL,request_error("Internal Error",""), att);
96
        return;
97
    }
98

  
99
    success_response(oss.str(), att);
100

  
101
    return;
102
}
103

  
104
/* -------------------------------------------------------------------------- */
105
/* -------------------------------------------------------------------------- */
106

  

Also available in: Unified diff