public interface DriftManagerRemote
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 - Exceptionorg.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)
subject - 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 - Exceptionorg.rhq.core.domain.drift.FileDiffReport generateUnifiedDiff(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.Drift<?,?> drift)
subject - drift - Specifies the two files that will be comparedorg.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.subject - drift1 - References the first file to be compareddrift2 - References the second file to be comparedorg.rhq.core.domain.drift.FileDiffReport generateUnifiedDiffByIds(org.rhq.core.domain.auth.Subject subject,
String driftId1,
String driftId2)
subject - driftId1 - the "new" version of the first driftdriftId2 - the "new" version of the second driftString getDriftFileBits(org.rhq.core.domain.auth.Subject subject, String hash)
subject - hash - The hash the uniquely identifies the requested contentbyte[] getDriftFileAsByteArray(org.rhq.core.domain.auth.Subject subject,
String hash)
subject - 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 existvoid pinSnapshot(org.rhq.core.domain.auth.Subject subject,
int driftDefId,
int snapshotVersion)
subject - driftDefId - 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 - Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.