public class ResourceGroupTargetingChangeBeanUpdateListener extends java.lang.Object implements BeanUpdateListener
Constructor and Description |
---|
ResourceGroupTargetingChangeBeanUpdateListener() |
Modifier and Type | Method and Description |
---|---|
void |
activateUpdate(BeanUpdateEvent event)
Called when a descriptor update that includes an update to the source
bean is activated.
|
void |
prepareUpdate(BeanUpdateEvent event)
Called when a proposed update includes an update to the source bean.
|
void |
rollbackUpdate(BeanUpdateEvent event)
Called when a descriptor update has been abandoned that included an
proposed update to the source bean.
|
private static void |
validateIfRGCanBeRetargeted(DomainMBean curDomain,
DomainMBean proposedDomain) |
public ResourceGroupTargetingChangeBeanUpdateListener()
public void prepareUpdate(BeanUpdateEvent event) throws BeanUpdateRejectedException
BeanUpdateListener
prepareUpdate
in interface BeanUpdateListener
event
- - description of proposed update to beanBeanUpdateRejectedException
- to reject the update.public void activateUpdate(BeanUpdateEvent event) throws BeanUpdateFailedException
BeanUpdateListener
activateUpdate
in interface BeanUpdateListener
event
- - a description of the changes to the target beanBeanUpdateFailedException
- to indicate that failures
occurred while activating the update.public void rollbackUpdate(BeanUpdateEvent event)
BeanUpdateListener
rollbackUpdate
in interface BeanUpdateListener
event
- - a description of the changes to the target bean that are
being abandoned.private static void validateIfRGCanBeRetargeted(DomainMBean curDomain, DomainMBean proposedDomain) throws BeanUpdateRejectedException
BeanUpdateRejectedException