|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DriftManagerRemote
Method Summary | |
---|---|
void |
deleteDriftDefinition(Subject subject,
EntityContext entityContext,
String driftDefName)
Remove the provided driftDef (identified by name) on the specified entityContext. |
PageList<? extends DriftChangeSet<?>> |
findDriftChangeSetsByCriteria(Subject subject,
DriftChangeSetCriteria criteria)
Standard criteria based fetch method |
PageList<DriftDefinition> |
findDriftDefinitionsByCriteria(Subject subject,
DriftDefinitionCriteria criteria)
|
PageList<? extends Drift<?,?>> |
findDriftsByCriteria(Subject subject,
DriftCriteria criteria)
Standard criteria based fetch method |
FileDiffReport |
generateUnifiedDiff(Subject subject,
Drift<?,?> drift)
Generates a unified diff of the two files references by drift. |
FileDiffReport |
generateUnifiedDiff(Subject subject,
Drift<?,?> drift1,
Drift<?,?> drift2)
Generates a unified diff of the two files referenced by drift1 and drift2. |
FileDiffReport |
generateUnifiedDiffByIds(Subject subject,
String driftId1,
String driftId2)
Generates a unified diff of the two file versions referenced by drift ids. |
byte[] |
getDriftFileAsByteArray(Subject subject,
String hash)
|
String |
getDriftFileBits(Subject subject,
String hash)
Returns the content associated with the specified hash as a string |
DriftSnapshot |
getSnapshot(Subject subject,
DriftSnapshotRequest request)
Calculate and return requested Drift Snapshot. |
void |
pinSnapshot(Subject subject,
int driftDefId,
int snapshotVersion)
|
void |
updateDriftDefinition(Subject subject,
EntityContext entityContext,
DriftDefinition driftDef)
Saves or updates the provided drift definition. |
Method Detail |
---|
void deleteDriftDefinition(Subject subject, EntityContext entityContext, String driftDefName)
subject
- entityContext
- driftDefName
- PageList<? extends DriftChangeSet<?>> findDriftChangeSetsByCriteria(Subject subject, DriftChangeSetCriteria criteria) throws Exception
subject
- criteria
-
Exception
PageList<DriftDefinition> findDriftDefinitionsByCriteria(Subject subject, DriftDefinitionCriteria criteria)
PageList<? extends Drift<?,?>> findDriftsByCriteria(Subject subject, DriftCriteria criteria) throws Exception
subject
- criteria
-
Exception
FileDiffReport generateUnifiedDiff(Subject subject, Drift<?,?> drift)
drift
- Specifies the two files that will be compared
FileDiffReport generateUnifiedDiff(Subject subject, Drift<?,?> drift1, Drift<?,?> drift2)
Drift.getNewDriftFile()
are compared.
drift1
- References the first file to be compareddrift2
- References the second file to be compared
FileDiffReport generateUnifiedDiffByIds(Subject subject, String driftId1, String driftId2)
drift1Id
- the "new" version of the first driftdrift2Id
- the "new" version of the second drift
String getDriftFileBits(Subject subject, String hash)
hash
- The hash the uniquely identifies the requested content
byte[] getDriftFileAsByteArray(Subject subject, String hash)
DriftSnapshot getSnapshot(Subject subject, DriftSnapshotRequest request)
subject
- request
-
IllegalArgumentException
- if the specified drift definition does not existvoid pinSnapshot(Subject subject, int driftDefId, int snapshotVersion)
void updateDriftDefinition(Subject subject, EntityContext entityContext, DriftDefinition driftDef)
Saves or updates the provided drift definition. If the definition, identified by name, already exists, an update is performed; otherwise, a new drift definition is saved. Agents if available will be notified of the change. If agents are unreachable, the definition will still be saved/updated. Changes will then propagate to agents the next time they do an inventory sync.
Several validation checks are performed before the definition is persisted. If it is a new definition, the following checks are performed:
subject
- entityContext
- driftDef
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |