public class DeployedAgentPluginsValidator extends Object implements ConsistencyValidator
| Modifier and Type | Class and Description |
|---|---|
static class |
DeployedAgentPluginsValidator.ConsistentPlugin |
| Constructor and Description |
|---|
DeployedAgentPluginsValidator() |
DeployedAgentPluginsValidator(PluginManagerLocal pluginManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
exportState(ExportWriter writer)
Exports the state this checker needs validated later on.
|
Set<DeployedAgentPluginsValidator.ConsistentPlugin> |
getPluginsToValidate()
Provided for testability
|
int |
hashCode() |
void |
initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
Initializes the validator with the current authentication info and access to database.
|
void |
initializeExportedStateValidation(ExportReader reader)
This method initializes the consistency checker to perform the
ConsistencyValidator.validateExportedState() method later on. |
void |
setPluginsToValidate(Set<DeployedAgentPluginsValidator.ConsistentPlugin> pluginsToValidate)
Provided for testability
|
void |
validateExportedState()
Validates that the current RHQ installation is consistent with the state
mandated during the export.
|
public DeployedAgentPluginsValidator()
public DeployedAgentPluginsValidator(PluginManagerLocal pluginManager)
public Set<DeployedAgentPluginsValidator.ConsistentPlugin> getPluginsToValidate()
public void setPluginsToValidate(Set<DeployedAgentPluginsValidator.ConsistentPlugin> pluginsToValidate)
pluginsToValidate - the pluginsToValidate to setpublic void initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
ConsistencyValidatorinitialize in interface ConsistencyValidatorsubject - the currently authenticated userentityManager - the entity manager that can be used to access the database if the
validator needs to do so.public void exportState(ExportWriter writer) throws XMLStreamException
ConsistencyValidatorexportState in interface ConsistencyValidatorXMLStreamExceptionpublic void initializeExportedStateValidation(ExportReader reader) throws XMLStreamException
ConsistencyValidatorConsistencyValidator.validateExportedState() method later on.
This method is called during import and the reader points to a structure
previously stored by the ConsistencyValidator.exportState(ExportWriter) method on
the source RHQ installation.
initializeExportedStateValidation in interface ConsistencyValidatorXMLStreamExceptionpublic void validateExportedState()
throws InconsistentStateException
ConsistencyValidator
This method is only ever called after the #initializeExportedStateValidation(XMLStreamReader)
is invoked.
validateExportedState in interface ConsistencyValidatorInconsistentStateException - in case of failed consistency checkCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.