com.ibm.mqe.validation
Class MQeDiskImageValidator
java.lang.Object
|
+--com.ibm.mqe.validation.MQeDiskImageValidator
- public final class MQeDiskImageValidator
- extends java.lang.Object
This class provides the sole entry point to the migration package.
It is intended to be created dynamically by at least some of its
users, and therefore should only have a default constructor.
This class (and therefore entire validation package) are optional.
If no the class is not present, then no validation will be done by
the queue manager, and incompatible versions of the registry may
cause obscure behaviour, including, but not limited to, loss of
data and duplicate messages.
Removal of this class may be considered a good idea where alternate
provision has been made for disk image validation/migration, or it
is certain that no such issues arise (for example on the first
release of a system using MQe).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MQeDiskImageValidator
public MQeDiskImageValidator()
setReporter
public final void setReporter(MQeDiskImageValidationReporter reporter)
- Set the reporter used by the receiver.
- Parameters:
reporter
- (com.ibm.mqe.migration.MQeRegistryValidationReporter)
- Returns:
- void
validateRegistry
public final boolean validateRegistry(java.lang.String queueManagerName,
java.lang.String registryLocation,
long requiredVersion)
- Validate a registry. This performs consistence checks, and checks the required registry
version against the version number stored in the registry. If the registry is not at a
required level then the tool will attempt to migrate the registry.
- Parameters:
queueManagerName
- (java.lang.String)registryLocation
- (java.lang.String)
- Returns:
- boolean