org.rhq.core.pc.drift
Interface DriftClient

All Known Implementing Classes:
DriftManager

public interface DriftClient

This is a client interface to the server that drift-related tasks call to interact with the server.

The primary reason classes use DriftClient instead of DriftManager directly is to facilitate testing with stubs or mocks.


Method Summary
 File getAbsoluteBaseDirectory(int resourceId, org.rhq.core.domain.drift.DriftDefinition driftDefinition)
           
 void repeatChangeSet(int resourceId, String driftDefName, int version)
           
 void reportMissingBaseDir(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)
           
 

Method Detail

sendChangeSetToServer

void sendChangeSetToServer(DriftDetectionSummary detectionSummary)

sendChangeSetContentToServer

void sendChangeSetContentToServer(int resourceId,
                                  String driftDefName,
                                  File contentZipFile)
Sends requested content to the server. All of the files in the content directory are zipped up, and the zip file is sent to the server. After the zip file is sent to the server, the content directory is purged.

Parameters:
resourceId -
driftDefinitionName -
contentDir -

repeatChangeSet

void repeatChangeSet(int resourceId,
                     String driftDefName,
                     int version)

getAbsoluteBaseDirectory

File getAbsoluteBaseDirectory(int resourceId,
                              org.rhq.core.domain.drift.DriftDefinition driftDefinition)

reportMissingBaseDir

void reportMissingBaseDir(int resourceId,
                          org.rhq.core.domain.drift.DriftDefinition driftDefinition)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.