org.rhq.core.domain.drift
Class DriftDefinition
java.lang.Object
org.rhq.core.domain.drift.DriftDefinition
- All Implemented Interfaces:
- Serializable
public class DriftDefinition
- extends Object
- implements Serializable
This is a convienence wrapper around a Configuration object whose schema is that
of DriftConfigurationDefinition
.
Note that this is not an actual Configuration object - it's got a HAS-A relationship
with Configuration.
This object also has an optional relationship with a Resource.
- See Also:
- Serialized Form
DriftDefinition
protected DriftDefinition()
DriftDefinition
public DriftDefinition(Configuration c)
getId
public int getId()
setId
public void setId(int id)
getCtime
public Long getCtime()
getName
public String getName()
setName
public void setName(String name)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(Boolean isEnabled)
- If null set to default
- Parameters:
isEnabled
-
isAttached
public boolean isAttached()
setAttached
public void setAttached(Boolean attached)
getDriftHandlingMode
public DriftConfigurationDefinition.DriftHandlingMode getDriftHandlingMode()
setDriftHandlingMode
public void setDriftHandlingMode(DriftConfigurationDefinition.DriftHandlingMode driftHandlingMode)
getInterval
public long getInterval()
setInterval
public void setInterval(Long interval)
- If null, set to default.
- Parameters:
interval
-
isPinned
public boolean isPinned()
setPinned
public void setPinned(boolean isPinned)
getConfiguration
public Configuration getConfiguration()
setConfiguration
public void setConfiguration(Configuration configuration)
getResource
public Resource getResource()
setResource
public void setResource(Resource resource)
getTemplate
public DriftDefinitionTemplate getTemplate()
setTemplate
public void setTemplate(DriftDefinitionTemplate template)
getComplianceStatus
public DriftComplianceStatus getComplianceStatus()
setComplianceStatus
public void setComplianceStatus(DriftComplianceStatus complianceStatus)
toString
public String toString()
- Overrides:
toString
in class Object
getBasedir
public DriftDefinition.BaseDirectory getBasedir()
setBasedir
public void setBasedir(DriftDefinition.BaseDirectory basedir)
getIncludes
public List<Filter> getIncludes()
getExcludes
public List<Filter> getExcludes()
setIncludes
public void setIncludes(List<Filter> includesFilters)
addInclude
public void addInclude(Filter filter)
setExcludes
public void setExcludes(List<Filter> excludesFilters)
addExclude
public void addExclude(Filter filter)
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.