public interface DriftAgentService
| Modifier and Type | Method and Description |
|---|---|
void |
ackChangeSet(int resourceId,
String driftDefName)
This method is invoked to inform the agent that the server has successfully
persisted the last change set sent to the server for the specified drift
definition.
|
void |
ackChangeSetContent(int resourceId,
String defName,
String token)
This method is invoked to inform the agent that the server has successfully
persisted change set content that was previously sent to the server.
|
void |
detectDrift(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
Schedule drift detection to occur immediately.
|
void |
pinSnapshot(int resourceId,
String defName,
org.rhq.core.domain.drift.DriftSnapshot snapshot) |
boolean |
requestDriftFiles(int resourceId,
Headers headers,
List<? extends org.rhq.core.domain.drift.DriftFile> driftFiles)
Ask the agent to send the requested drift file content as a zip of all requested files.
|
void |
scheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
Requests that the agent start performing drift detection for a resource with the
specified drift definition.
|
void |
unscheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
Requests that the agent stop performing the specified drift detection for the resource.
|
void |
updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
Requests that the agent update its processing of the specified driftDefinition.
|
void |
updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDef,
org.rhq.core.domain.drift.DriftSnapshot driftSnapshot) |
boolean requestDriftFiles(int resourceId,
Headers headers,
List<? extends org.rhq.core.domain.drift.DriftFile> driftFiles)
driftFiles - headers - Used to identify the change set to which the requested files belongvoid detectDrift(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
resourceId and driftDefinition has its
next scan time reset in order to move the schedule to the front of the queue.
Note that when the drift detection occurs is largely dependent on a couple of
factors. First there could be other schedules already at the front of the queue that
would first be processed if their next scan times have also been reset. Secondly,
drift detection occurs at regularly scheduled intervals in its own thread. If this
method is called immediately after drift detection has just started, the earliest
that the detection would occur is the time it takes for the current detection to
finish plus the time period between executions of the drift detector task.resourceId - The id of the resource for which the request is being madedriftDefinition - Specifies how the detection should be carried out. This
includes any filtering rules that should be applied.void scheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
resourceId - The id of the resource for which the request is being madedriftDefinition - Specifies how and when the detection should be carried outDriftDefinitionvoid unscheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
resourceId - The id of the resource for which the request is being madedriftDefinition - The doomed drift definitionDriftDefinitionvoid updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
driftDefinition - The updated driftDefinition.DriftDefinitionvoid updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDef,
org.rhq.core.domain.drift.DriftSnapshot driftSnapshot)
void ackChangeSet(int resourceId,
String driftDefName)
resourceId - The id of the resource to which the acknowledged change set
belongs.driftDefName - The name of the drift definition to which the change set
belongs.void ackChangeSetContent(int resourceId,
String defName,
String token)
resourceId - The id of the resource to which the referenced drift definition
belongs.defName - The name of the drift definition to which the content
belongs.token - A token that is used to identify the content zip filevoid pinSnapshot(int resourceId,
String defName,
org.rhq.core.domain.drift.DriftSnapshot snapshot)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.