|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- A server plugin's Drift implementationpublic interface DriftChangeSet<D extends Drift<?,?>>
A DriftChangeSet is somewhat similar to a commit in version control systems. It contains information about files being monitored or tracked for drift detection. A change set tells us about files that are added, modified, and deleted.
Agents generate and send change set reports to the RHQ server. This interface provides the contract required for defining and persisting a DriftChangeSet. Drift server plugins are responsible for managing persistence. Each DriftChangeSet belongs to a particularDriftDefinition
which specifies
the rules for how drift detection is performed (by the agent). A DriftDefinition is
in turn owned by a Resource
and a resource
can have multiple drift definitions.
Method Summary | |
---|---|
DriftChangeSetCategory |
getCategory()
Retturns the category that identifies the change set type. |
Long |
getCtime()
|
int |
getDriftDefinitionId()
Returns the id of the owning drift definition. |
DriftConfigurationDefinition.DriftHandlingMode |
getDriftHandlingMode()
Returns the drift handling mode of the owning drift definition at the time of change set creation. |
Set<D> |
getDrifts()
|
String |
getId()
Returns a string that uniquely identifies the change set. |
int |
getResourceId()
Returns the id of the resource to which the drift definition is assigned. |
int |
getVersion()
Every change set must be assigned a version that is unique within the context of the owning DriftDefinition . |
void |
setCategory(DriftChangeSetCategory category)
Sets the change set category. |
void |
setDriftDefinitionId(int id)
Sets the id of the owning drift definition. |
void |
setDriftHandlingMode(DriftConfigurationDefinition.DriftHandlingMode driftHandlingMode)
Sets the drift handling mode for the change set. |
void |
setDrifts(Set<D> drifts)
|
void |
setId(String id)
Sets the change set id which should be unique. |
void |
setResourceId(int id)
Sets the id of the resource to which the drift definition is assigned. |
void |
setVersion(int version)
Sets the change set version number. |
Method Detail |
---|
String getId()
void setId(String id)
id
- The change set identifier that should be uniqueLong getCtime()
int getVersion()
DriftDefinition
. This is analgous to a revision number in a
version control system like SVN.
DriftDefinition
.void setVersion(int version)
DriftDefinition
. Change sets should be assigned version numbers in
increasing order. The first change set saved should have a version of N, the second
should have a value of N + 1, etc.
version
- The version number.DriftChangeSetCategory getCategory()
DriftChangeSetCategory
void setCategory(DriftChangeSetCategory category)
category
- The category that identifies the change set typeDriftChangeSetCategory
DriftConfigurationDefinition.DriftHandlingMode getDriftHandlingMode()
DriftDefinition.DriftHandlingMode
modevoid setDriftHandlingMode(DriftConfigurationDefinition.DriftHandlingMode driftHandlingMode)
driftHandlingMode
- The DriftDefinition.DriftHandlingMode
modeint getDriftDefinitionId()
DriftDefinition
idvoid setDriftDefinitionId(int id)
id
- The DriftDefinition
idint getResourceId()
void setResourceId(int id)
id
- The Resource
idSet<D> getDrifts()
void setDrifts(Set<D> drifts)
drifts
- The entries that make up this change set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |