|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DriftManagerRemote
| Method Summary | |
|---|---|
void |
deleteDriftDefinition(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext entityContext,
String driftDefName)
Remove the provided driftDef (identified by name) on the specified entityContext. |
org.rhq.core.domain.util.PageList<? extends org.rhq.core.domain.drift.DriftChangeSet<?>> |
findDriftChangeSetsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftChangeSetCriteria criteria)
Standard criteria based fetch method |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.DriftDefinition> |
findDriftDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftDefinitionCriteria criteria)
|
org.rhq.core.domain.util.PageList<? extends org.rhq.core.domain.drift.Drift<?,?>> |
findDriftsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria criteria)
Standard criteria based fetch method |
org.rhq.core.domain.drift.FileDiffReport |
generateUnifiedDiff(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.Drift<?,?> drift)
Generates a unified diff of the two files references by drift. |
org.rhq.core.domain.drift.FileDiffReport |
generateUnifiedDiff(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.Drift<?,?> drift1,
org.rhq.core.domain.drift.Drift<?,?> drift2)
Generates a unified diff of the two files referenced by drift1 and drift2. |
org.rhq.core.domain.drift.FileDiffReport |
generateUnifiedDiffByIds(org.rhq.core.domain.auth.Subject subject,
String driftId1,
String driftId2)
Generates a unified diff of the two file versions referenced by drift ids. |
byte[] |
getDriftFileAsByteArray(org.rhq.core.domain.auth.Subject subject,
String hash)
|
String |
getDriftFileBits(org.rhq.core.domain.auth.Subject subject,
String hash)
Returns the content associated with the specified hash as a string |
org.rhq.core.domain.drift.DriftSnapshot |
getSnapshot(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.DriftSnapshotRequest request)
Calculate and return requested Drift Snapshot. |
void |
pinSnapshot(org.rhq.core.domain.auth.Subject subject,
int driftDefId,
int snapshotVersion)
|
void |
updateDriftDefinition(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext entityContext,
org.rhq.core.domain.drift.DriftDefinition driftDef)
Saves or updates the provided drift definition. |
| Method Detail |
|---|
void deleteDriftDefinition(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext entityContext,
String driftDefName)
subject - entityContext - driftDefName -
org.rhq.core.domain.util.PageList<? extends org.rhq.core.domain.drift.DriftChangeSet<?>> findDriftChangeSetsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftChangeSetCriteria criteria)
throws Exception
subject - criteria -
Exception
org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.DriftDefinition> findDriftDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftDefinitionCriteria criteria)
org.rhq.core.domain.util.PageList<? extends org.rhq.core.domain.drift.Drift<?,?>> findDriftsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria criteria)
throws Exception
subject - criteria -
Exception
org.rhq.core.domain.drift.FileDiffReport generateUnifiedDiff(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.Drift<?,?> drift)
drift - Specifies the two files that will be compared
org.rhq.core.domain.drift.FileDiffReport generateUnifiedDiff(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.Drift<?,?> drift1,
org.rhq.core.domain.drift.Drift<?,?> drift2)
Drift.getNewDriftFile()
are compared.
drift1 - References the first file to be compareddrift2 - References the second file to be compared
org.rhq.core.domain.drift.FileDiffReport generateUnifiedDiffByIds(org.rhq.core.domain.auth.Subject subject,
String driftId1,
String driftId2)
drift1Id - the "new" version of the first driftdrift2Id - the "new" version of the second drift
String getDriftFileBits(org.rhq.core.domain.auth.Subject subject,
String hash)
hash - The hash the uniquely identifies the requested content
byte[] getDriftFileAsByteArray(org.rhq.core.domain.auth.Subject subject,
String hash)
org.rhq.core.domain.drift.DriftSnapshot getSnapshot(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.DriftSnapshotRequest request)
subject - request -
IllegalArgumentException - if the specified drift definition does not exist
void pinSnapshot(org.rhq.core.domain.auth.Subject subject,
int driftDefId,
int snapshotVersion)
void updateDriftDefinition(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext entityContext,
org.rhq.core.domain.drift.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 | |||||||||