org.rhq.core.pc.drift.sync
Class DriftSyncManager
java.lang.Object
org.rhq.core.pc.drift.sync.DriftSyncManager
public class DriftSyncManager
- extends Object
This class handles syncing drift definitions and drift content during inventory sync.
This class is intended to server as the public interface (so to speak) to
InventoryManager for syncing drift definitions and content.
Please review the docs for each of the setter methods to determine which properties
should be set before invoking any business logic methods.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DriftSyncManager
public DriftSyncManager()
setDriftServer
public void setDriftServer(DriftServerService driftServer)
- Parameters:
driftServer - The interface to the remote server. This property must be set.
It is injected to facilitate testing with stubs or mocks.
setDriftManager
public void setDriftManager(DriftManager driftManager)
- Parameters:
driftManager - The drift manager singleton created by the plugin container.
This property must be set even if drift manager is not yet initialized. It is
injected to facilitate testing with stubs or mocks.
setInventoryManager
public void setInventoryManager(InventoryManager inventoryManager)
- Parameters:
inventoryManager - The inventory manager singleton created by the plugin
container. This property must be set. It is injected to facilitate testing with stubs
or mocks.
setDataDirectory
public void setDataDirectory(File dataDirectory)
- Parameters:
dataDirectory - The plugin container data directory where inventory files are
stored. This property must be set. It is injected to facilitate testing.
syncWithServer
public void syncWithServer(Set<Integer> resourceIds)
- Synchronized both drift definitions and drift content with the server. The drift
definition sync goes from server to agent in that the drift definitions in the
local inventory are updated to match the drift definitions on the server
inventory.
The content sync works as follows. Any change set content zip files found locally
resent to the server under the assumption that the content has not been persisted on
the server.
- Parameters:
resourceIds - The ids of resources that need to be synced.
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.