Revision 6329d8b3 include/Host.h

View differences:

include/Host.h
173 173

  
174 174
    /**
175 175
     *  Sets the cluster for this host
176
     *    @return time_t last monitored time
176
     *    @param cluster_id Cluster's oid
177
     *    @return 0 on success
177 178
     */
178
    int set_cluster(const string& cluster_name)
179
    int set_cluster(int cluster_id)
179 180
    {
180
        cluster = cluster_name;
181
        gid = cluster_id;
181 182
        return 0;
182 183
    };
183 184

  
......
329 330
     */
330 331
    time_t      last_monitored;
331 332

  
332
    /**
333
     *  Name of the cluster this host belongs to.
334
     */
335
    string      cluster;
336

  
337 333
    // -------------------------------------------------------------------------
338 334
    //  Host Attributes
339 335
    // -------------------------------------------------------------------------
......
347 343
    // *************************************************************************
348 344

  
349 345
    Host(int           id=-1,
346
         int           cluster_id=-1,
350 347
         const string& hostname="",
351 348
         const string& im_mad_name="",
352 349
         const string& vmm_mad_name="",
353
         const string& tm_mad_name="",
354
         const string& cluster="");
350
         const string& tm_mad_name="");
355 351

  
356 352
    virtual ~Host();
357 353

  

Also available in: Unified diff