|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DriftSynchronizer
A DriftSynchronizer is responsible for sycning DriftDefinitions in the
server's with those in the local inventory.
| Method Summary | |
|---|---|
void |
addToLocalInventory(int resourceId,
List<org.rhq.core.domain.drift.DriftDefinition> definitions)
Adds the drift definitions to the local inventory. |
List<org.rhq.core.domain.drift.DriftDefinition> |
getAddedDefinitions(int resourceId,
Set<org.rhq.core.domain.drift.DriftDefinition> definitionsFromServer)
Determines which drift definitions for a resource have been added on the server and need to be added to the local inventory. |
List<org.rhq.core.domain.drift.DriftDefinition> |
getDeletedDefinitions(int resourceId,
Set<org.rhq.core.domain.drift.DriftDefinition> definitionsFromServer)
Determines which drift definitions for a resource have been deleted on the server and need to be purged from the local inventory. |
void |
purgeFromLocalInventory(int resourceId,
List<org.rhq.core.domain.drift.DriftDefinition> definitions)
Removes the drift definitions from local inventory. |
void |
syncChangeSetContent()
This is an optional operation as it can only be performed when DriftManager is fully initialized. |
| Method Detail |
|---|
List<org.rhq.core.domain.drift.DriftDefinition> getDeletedDefinitions(int resourceId,
Set<org.rhq.core.domain.drift.DriftDefinition> definitionsFromServer)
resourceId - definitionsFromServer - A set of drift definitions belonging to the
resource with the specified id. The set uses a driftDefinitionComparator
with the compare mode set to BOTH_BASE_INFO_AND_DIRECTORY_SPECIFICATIONS.
void purgeFromLocalInventory(int resourceId,
List<org.rhq.core.domain.drift.DriftDefinition> definitions)
ResourceContainer. But if the
plugin container is initialized, then drift detection will have to be unscheduled.
resourceId - definitions - The drift definitions to purge from local inventory
List<org.rhq.core.domain.drift.DriftDefinition> getAddedDefinitions(int resourceId,
Set<org.rhq.core.domain.drift.DriftDefinition> definitionsFromServer)
resourceId - definitionsFromServer - A set of drift definitions belonging to the
resource with the specified id. The set uses a driftDefinitionComparator
with the compare mode set to BOTH_BASE_INFO_AND_DIRECTORY_SPECIFICATIONS.
void addToLocalInventory(int resourceId,
List<org.rhq.core.domain.drift.DriftDefinition> definitions)
ResourceContainer. But if the
plugin container is initialized, drift detection will have to be scheduled.
resourceId - definitions - The drift definitions to add to the local inventory.void syncChangeSetContent()
DriftManager is fully initialized.
Implementations are responsible for detecting any change set content that may not be
on the server and then sending that content to the server.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||