public interface DriftServerPluginFacet
| Modifier and Type | Method and Description |
|---|---|
String |
copyChangeSet(org.rhq.core.domain.auth.Subject subject,
String changeSetId,
int driftDefId,
int resourceId)
Creates a copy of the specified, existing change set.
|
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)
Performs criteria-based search for change sets.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.DriftComposite> |
findDriftCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria 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.DriftFile |
getDriftFile(org.rhq.core.domain.auth.Subject subject,
String hashId)
Simple get method for a DriftFile.
|
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
|
String |
persistChangeSet(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.drift.DriftChangeSet<?> changeSet)
Persists a new initial change set for a pinned snapshot.
|
void |
purgeByDriftDefinitionName(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String driftDefName)
When a user wants to completely remove all data related to a drift definition,
this method will be called to give the plugin a chance to clean up any data related
to the drift definition that is going to be deleted.
|
int |
purgeOrphanedDriftFiles(org.rhq.core.domain.auth.Subject subject,
long purgeMillis)
This will remove all drift files that are no longer referenced by drift entries.
|
DriftChangeSetSummary |
saveChangeSet(org.rhq.core.domain.auth.Subject subject,
int resourceId,
File changeSetZip)
Parses the given change set file and persists its data.
|
void |
saveChangeSetFiles(org.rhq.core.domain.auth.Subject subject,
File changeSetFilesZip) |
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)
Performs criteria-based search for change sets.
Note that there are really two types of change sets - a delta change set and a snapshot or coverage change set. A snapshot includes all files that are under drift detection. The delta snapshot just includes references to those files that have changed (here change can be a modification, addition, or deletion of a file).
Implementations of this method can assume that queries for snapshots and for delta change sets will always be made in separate calls; in other words, this method should return either only snapshots (i.e., coverage change sets) or only delta change sets. This assumption/restriction is in place in large part because of how the UI queries change sets.
subject - criteria - org.rhq.core.domain.util.PageList<org.rhq.core.domain.drift.DriftComposite> findDriftCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.DriftCriteria 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)
subject - criteria - org.rhq.core.domain.drift.DriftFile getDriftFile(org.rhq.core.domain.auth.Subject subject,
String hashId)
throws Exception
subject - hashId - ExceptionDriftChangeSetSummary saveChangeSet(org.rhq.core.domain.auth.Subject subject, int resourceId, File changeSetZip) throws Exception
subject - resourceId - changeSetZip - ExceptionString persistChangeSet(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.drift.DriftChangeSet<?> changeSet)
resourceId property can be
ignored.subject - The user submitting the requestchangeSet - The change set to persist which may be a resource level change set meaning it belongs
to a drift definition, or it may be a type level change set meaning it belongs to
a templateString copyChangeSet(org.rhq.core.domain.auth.Subject subject, String changeSetId, int driftDefId, int resourceId)
subject - changeSetId - driftDefId - resourceId - void saveChangeSetFiles(org.rhq.core.domain.auth.Subject subject,
File changeSetFilesZip)
throws Exception
Exceptionvoid purgeByDriftDefinitionName(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String driftDefName)
throws Exception
subject - resourceId - the resource whose drift definition is being purgeddriftDefName - identifies the data that is to be purgedExceptionint purgeOrphanedDriftFiles(org.rhq.core.domain.auth.Subject subject,
long purgeMillis)
subject - purgeMillis - only those unused drift files that are older than this (in epoch millis) will be purged.String getDriftFileBits(org.rhq.core.domain.auth.Subject subject, String hash)
hash - The hash the uniquely identifies the requested contentbyte[] getDriftFileAsByteArray(org.rhq.core.domain.auth.Subject subject,
String hash)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.