com.sun.n1.sps.model.host
Interface AttributeCriteria


public interface AttributeCriteria

An attribute criteria specifies a dynamic selection criteria for matching hosts that contain a particular value for a particular attribute. This class is used in conjunction with the HostSearchCriteria class to create a dynamic, user-specified host search.

The attribute criteria can be used to match against dynamic variables available on the host, as defined by the host type that is associated with the host. It can also be used to match against predefined host attributes, such as name and description, and machine information attributes, such as OS name.. The user can also specify a glob-style pattern used for comparisons against the value of the attribute in question.


Method Summary
 java.lang.String getAttributeName()
          Returns the name of the host attribute against which to compare the value.
 

Method Detail

getAttributeName

java.lang.String getAttributeName()
Returns the name of the host attribute against which to compare the value. The name may be a predefined attribute name, in which case the comparison is made against the value of the corresponding host attribute. Or the name may be a dynamic attribute name, in which case the comparison is made against the corresponding dynamic host variable value, where the variable is one defined by the associated host type. Note that if the associated host type does not define a variable with the passed name, then the host is not matched by this criteria.

Returns:
The name of the attribute against which to compare the value.