hostdependency_class Class Reference

Use a host dependency when you want a host's status to depend on other host(s) status(es). More...

Inheritance diagram for hostdependency_class:
object_class

Public Member Functions

 validate_object ()
 Make sure user-input is sane prior to invoking save/glue_objects.
 compute_master_obj_id ()
 Computes a master object id.
 prepare_draw ()
 Prepare the object for drawing in the gui.
 get_cmd_bar_links ()
 Returns a list of actions that are legal for this object type.

Data Fields

 $type = 'hostdependency'
 object type
 $master_obj_type = 'host'
 master object type
 $master_obj_candidates = array('host' => 'dependent_host_name', 'hostgroup' => 'dependent_hostgroup_name')
 If there are several possible master object types for this object, list them here.
 $master_obj_identifier = 'dependent_host_name'
 Variable in this object identifying the master object.

Detailed Description

Use a host dependency when you want a host's status to depend on other host(s) status(es).


Member Function Documentation

hostdependency_class::compute_master_obj_id (  ) 

Computes a master object id.

Returns:
False on errors, the master object id on success

Reimplemented from object_class.

hostdependency_class::validate_object (  ) 

Make sure user-input is sane prior to invoking save/glue_objects.

Returns:
bool: True on success. False on errors

service and dependent_service can legally be the same in 'new' if the user hasn't changed anything. This is the call for us to remove the 'new' object from the list.

Reimplemented from object_class.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 18 Feb 2013 for nacoma by  doxygen 1.6.1