|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.sync.validators.DeployedAgentPluginsValidator
public class DeployedAgentPluginsValidator
This implementation checks that the two installations have the exact same plugins deployed. Note that this class is currently not used by any synchronizer but exists for "demo" purposes.
| Nested Class Summary | |
|---|---|
static class |
DeployedAgentPluginsValidator.ConsistentPlugin
|
| Constructor Summary | |
|---|---|
DeployedAgentPluginsValidator()
|
|
DeployedAgentPluginsValidator(PluginManagerLocal pluginManager)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeployedAgentPluginsValidator()
public DeployedAgentPluginsValidator(PluginManagerLocal pluginManager)
| Method Detail |
|---|
public Set<DeployedAgentPluginsValidator.ConsistentPlugin> getPluginsToValidate()
public void setPluginsToValidate(Set<DeployedAgentPluginsValidator.ConsistentPlugin> pluginsToValidate)
pluginsToValidate - the pluginsToValidate to set
public void initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
ConsistencyValidator
initialize 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
ConsistencyValidator
exportState in interface ConsistencyValidatorXMLStreamException
public 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 ConsistencyValidatorXMLStreamException
public 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 checkpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||