|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.drift.DriftDefinitionTemplate
public class DriftDefinitionTemplate
A drift definition template (or drift template for short) is a drift definition that applies at the type level like an alert template. Drift templates can be defined in plugin descriptors as a way to provide suggested and/or common definitions for users wanting to monitor resources of that type. Users can also create templates from admin section of the UI where templates can be managed. Template can be created from existing definitions.
A pinned drift template is pinned to a specific snapshot and applies at the type level. A pinned template can be created from an existing snapshot that belongs to a particular resource. Definitions created from a pinned template are pinned as well and use the template's snapshot as their snapshots.
When a pinned template is deleted, all definitions created from said template are deleted as well. With an unpinned template however, the definitions can outlive the template.
DriftDefinition
,
Serialized FormConstructor Summary | |
---|---|
DriftDefinitionTemplate()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DriftDefinitionTemplate()
Method Detail |
---|
public int getId()
public void setId(int id)
public Long getCtime()
public void setCtime(Long ctime)
public String getName()
public void setName(String name)
public String getDescription()
public boolean isUserDefined()
public void setUserDefined(boolean isUserDefined)
public void setDescription(String description)
public ResourceType getResourceType()
public void setResourceType(ResourceType type)
public Configuration getConfiguration()
public DriftDefinition getTemplateDefinition()
public void setTemplateDefinition(DriftDefinition templateDefinition)
public String getChangeSetId()
public void setChangeSetId(String changeSetId)
changeSetId
- The id of the change set to which the template is pinnedpublic Set<DriftDefinition> getDriftDefinitions()
public void addDriftDefinition(DriftDefinition definition)
public void removeDriftDefinition(DriftDefinition definition)
public Configuration createConfiguration()
public DriftDefinition createDefinition()
public boolean isPinned()
public String toString()
toString
in class Object
public String toString(boolean verbose)
public boolean equals(Object o)
equals
in class Object
o
- The object against which to compare
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |