org.rhq.core.domain.drift
Class DriftDefinition

java.lang.Object
  extended by 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

Nested Class Summary
static class DriftDefinition.BaseDirectory
           
 
Constructor Summary
protected DriftDefinition()
           
  DriftDefinition(Configuration c)
           
 
Method Summary
 void addExclude(Filter filter)
           
 void addInclude(Filter filter)
           
 DriftDefinition.BaseDirectory getBasedir()
           
 DriftComplianceStatus getComplianceStatus()
           
 Configuration getConfiguration()
           
 Long getCtime()
           
 String getDescription()
           
 DriftConfigurationDefinition.DriftHandlingMode getDriftHandlingMode()
           
 List<Filter> getExcludes()
           
 int getId()
           
 List<Filter> getIncludes()
           
 long getInterval()
           
 String getName()
           
 Resource getResource()
           
 DriftDefinitionTemplate getTemplate()
           
 boolean isAttached()
           
 boolean isEnabled()
           
 boolean isPinned()
           
 void setAttached(Boolean attached)
           
 void setBasedir(DriftDefinition.BaseDirectory basedir)
           
 void setComplianceStatus(DriftComplianceStatus complianceStatus)
           
 void setConfiguration(Configuration configuration)
           
 void setDescription(String description)
           
 void setDriftHandlingMode(DriftConfigurationDefinition.DriftHandlingMode driftHandlingMode)
           
 void setEnabled(Boolean isEnabled)
          If null set to default
 void setExcludes(List<Filter> excludesFilters)
           
 void setId(int id)
           
 void setIncludes(List<Filter> includesFilters)
           
 void setInterval(Long interval)
          If null, set to default.
 void setName(String name)
           
 void setPinned(boolean isPinned)
           
 void setResource(Resource resource)
           
 void setTemplate(DriftDefinitionTemplate template)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DriftDefinition

protected DriftDefinition()

DriftDefinition

public DriftDefinition(Configuration c)
Method Detail

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.