Constructor and Description |
---|
Notifier()
Deprecated.
Create a new Notifier
|
Modifier and Type | Method and Description |
---|---|
void |
active(Version version)
Deprecated.
Specified version being made active
|
void |
audit(Version version)
Deprecated.
Audit activating a configuration version
|
void |
auditInactive(Version version)
Deprecated.
Audit a configuration version that is being
deactivated
|
void |
auditLoad(Version version,
OutParameter<Config[]> configToRemove)
Deprecated.
Audit a configuration being loaded
|
void |
auditRemove(Version version)
Deprecated.
Audit a configuration version that is being
removed
|
void |
auditReplace(Version deactivating,
Version activating)
Deprecated.
Audit replacing an active version
|
void |
inactive(Version version)
Deprecated.
Specified version being made inactive
|
void |
load(Version version,
OutParameter<Config[]> configList)
Deprecated.
Specified version being loaded
|
void |
remove(Version version)
Deprecated.
Specified version is being removed
|
void |
replace(Version deactivating,
Version activating)
Deprecated.
Replace an active version with another version
|
public Notifier()
public void load(Version version, OutParameter<Config[]> configList) throws OperationFailed
Specified version being loaded
version
- Version being loadedconfigList
- additional configuration objects
to be added to version.
Called after a new configuration version is loaded. The load operation may return a list of configuration objects to be added to the version.
OperationFailed
public void active(Version version)
Specified version being made active
version
- Version made active
Called when a new configuration version is made active and there was no previous active version of configuration data.
public void inactive(Version version)
Specified version being made inactive
version
- Version being made inactive
Called when a configuration version is deactivated without activating a new version. The version specified in the operation parameter is already inactive when this operation is called.
public void replace(Version deactivating, Version activating)
Replace an active version with another version
deactivating
- Version being made inactiveactivating
- Version being made active
Called when there is an active configuration version being replaced with a new version. The versions change state before the notifier operation is called so the activating version is the active version.
public void remove(Version version)
Specified version is being removed
version
- Version being removed
Called when a configuration version is being removed. This operation is called after all of the registered auditRemove() operations have been called but before the version is removed.
public void auditLoad(Version version, OutParameter<Config[]> configToRemove) throws OperationFailed
Audit a configuration being loaded
version
- Version to auditconfigToRemove
- Configuration objects to remove
Called during the configuration load operation to audit the configuration version just loaded. This operation will be called after the entire version has been loaded. This means that all load notifiers will be called before any of the auditLoad notifiers are called.
The auditLoad operation decides whether to accept the configuration version without modification, remove a subset of the configuration objects from the version, or reject the configuration version.
To accept the configuration version without modification return normally from the auditLoad operation. Do not place any objects into the configToRemove output parameter.
To remove objects from the configuration version place the objects in the configToRemove output parameter and then return normally.
To reject the configuration version raise an OperationFailed exception with the reason field set to the reason the audit failed. This will cause the load operation to fail. All configuration objects loaded into shared memory during the load operation will be removed.
OperationFailed
public void audit(Version version) throws OperationFailed
Audit activating a configuration version
version
- Version to audit
Called to audit a configuration version that is transitioning from inactive to active.
OperationFailed is raised if the audit fails. Reason contains the reason the audit failed.
OperationFailed
public void auditReplace(Version deactivating, Version activating) throws OperationFailed
Audit replacing an active version
deactivating
- Version being made inactiveactivating
- Version being made active
Called to audit replacement of an active version with another version. In the case of replacing an active version with another version, the auditReplace notifier is called, if it has been implemented. If not, the audit notifier operation is called with the activating version as the version parameter.
OperationFailed is raised if the audit fails. Reason contains the reason the audit failed.
OperationFailed
public void auditInactive(Version version) throws OperationFailed
Audit a configuration version that is being deactivated
version
- Version to audit
Called to audit a configuration version that is transitioning from active to inactive.
OperationFailed is raised if the audit fails. Reason contains the reason the audit failed.
OperationFailed
public void auditRemove(Version version) throws OperationFailed
Audit a configuration version that is being removed
version
- Version to audit
Called to audit a configuration version that is being removed
OperationFailed is raised if the audit fails. Reason contains the reason the audit failed.
OperationFailed