|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.pc.agent.AgentService
org.rhq.core.pc.drift.DriftManager
public class DriftManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.rhq.core.pc.agent.AgentService |
|---|
AgentService.LifecycleState |
| Constructor Summary | |
|---|---|
DriftManager()
|
|
| Method Summary | |
|---|---|
void |
ackChangeSet(int resourceId,
String defName)
|
void |
ackChangeSetContent(int resourceId,
String driftDefName,
String token)
|
void |
detectDrift(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
|
File |
getAbsoluteBaseDirectory(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
Given a drift definition, this examines the def and its associated resource to determine where exactly the base directory is that should be monitoried. |
protected InventoryManager |
getInventoryManager()
Returns the manager that can provide data on the inventory. |
protected MeasurementManager |
getMeasurementManager()
Returns the manager that can provide data on the measurements/metrics. |
ScheduleQueue |
getSchedulesQueue()
This method is provided as a test hook. |
void |
initialize()
Initializes the container service which will effectively tell the service to start doing its work. |
boolean |
isInitialized()
|
void |
pinSnapshot(int resourceId,
String defName,
org.rhq.core.domain.drift.DriftSnapshot snapshot)
|
void |
repeatChangeSet(int resourceId,
String driftDefName,
int version)
|
void |
reportMissingBaseDir(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
|
boolean |
requestDriftFiles(int resourceId,
Headers headers,
List<? extends org.rhq.core.domain.drift.DriftFile> driftFiles)
|
void |
scanForContentToResend()
Scans the changesets directory for any change set content zip files. |
void |
scheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
|
void |
sendChangeSetContentToServer(int resourceId,
String driftDefName,
File contentZipFile)
Sends requested content to the server. |
void |
sendChangeSetToServer(DriftDetectionSummary detectionSummary)
|
void |
setConfiguration(PluginContainerConfiguration configuration)
Informs the container service how it should be configured by providing the full plugin container configuration. |
void |
shutdown()
Stops the container service which effectively releases all runtime resources such as running threads. |
void |
unscheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
|
void |
updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
|
void |
updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDef,
org.rhq.core.domain.drift.DriftSnapshot driftSnapshot)
|
| Methods inherited from class org.rhq.core.pc.agent.AgentService |
|---|
addLifecycleListener, getClientInterface, notifyLifecycleListenersOfNewState, remoteInputStream, remoteOutputStream, removeLifecycleListener, setAgentServiceStreamRemoter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DriftManager()
| Method Detail |
|---|
public void setConfiguration(PluginContainerConfiguration configuration)
ContainerServicenull configuration object so implementations of
this interface should never have to worry about a null configuration parameter value.
setConfiguration in interface ContainerServicepublic boolean isInitialized()
public void initialize()
ContainerServicenull
configuration will be set via a call to ContainerService.setConfiguration(PluginContainerConfiguration).
initialize in interface ContainerServicepublic void scanForContentToResend()
public ScheduleQueue getSchedulesQueue()
public void shutdown()
ContainerService
shutdown in interface ContainerServicepublic void sendChangeSetToServer(DriftDetectionSummary detectionSummary)
sendChangeSetToServer in interface DriftClient
public void sendChangeSetContentToServer(int resourceId,
String driftDefName,
File contentZipFile)
DriftClient
sendChangeSetContentToServer in interface DriftClient
public void repeatChangeSet(int resourceId,
String driftDefName,
int version)
repeatChangeSet in interface DriftClient
public void detectDrift(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
detectDrift in interface DriftAgentService
public void scheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
scheduleDriftDetection in interface DriftAgentService
public boolean requestDriftFiles(int resourceId,
Headers headers,
List<? extends org.rhq.core.domain.drift.DriftFile> driftFiles)
requestDriftFiles in interface DriftAgentService
public void unscheduleDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
unscheduleDriftDetection in interface DriftAgentService
public void updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
updateDriftDetection in interface DriftAgentService
public void updateDriftDetection(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDef,
org.rhq.core.domain.drift.DriftSnapshot driftSnapshot)
updateDriftDetection in interface DriftAgentService
public void reportMissingBaseDir(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
reportMissingBaseDir in interface DriftClient
public void pinSnapshot(int resourceId,
String defName,
org.rhq.core.domain.drift.DriftSnapshot snapshot)
pinSnapshot in interface DriftAgentService
public void ackChangeSet(int resourceId,
String defName)
ackChangeSet in interface DriftAgentService
public void ackChangeSetContent(int resourceId,
String driftDefName,
String token)
ackChangeSetContent in interface DriftAgentService
public File getAbsoluteBaseDirectory(int resourceId,
org.rhq.core.domain.drift.DriftDefinition driftDefinition)
getAbsoluteBaseDirectory in interface DriftClientresourceId - The id of the resource to which the def belongsdriftDefinition - describes what is to be monitored for drift
protected InventoryManager getInventoryManager()
protected MeasurementManager getMeasurementManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||