public class LCAwareDynamicRegistryBean extends DynamicRegistryBean implements LifeCycleAware
Constructor and Description |
---|
LCAwareDynamicRegistryBean() |
Modifier and Type | Method and Description |
---|---|
void |
approveStateChange()
Approves the state change.
|
boolean |
equals(java.lang.Object other) |
LCModel |
findLCModel()
Find the LCModel that is assigned to the registryBean.
|
LCRegistryObjectState |
getLCState()
Returns the current state of the registryBean.
|
int |
hashCode() |
void |
rejectStateChange()
Rejects the state change.
|
void |
setBeanPool(BeanPool beanPool)
Sets the BeanPool.
|
LCStateChangeStatus |
setLCState(LCState targetState)
Set the registry bean to the given state.
|
void |
setRegistryProvider(RegistryProvider registryProvider)
Sets the RegistryProvider.
|
getCheckpointName, getDescription, getIdentity, getKey, getName, isRevision, setCheckpointName, setDescription, setIdentity, setKey, setName, toString
getDescription, getKey, getName, setDescription, setName
public LCRegistryObjectState getLCState() throws CSAppFrameworkException
LifeCycleAware
getLCState
in interface LifeCycleAware
LCRegistryObjectState
, null
if no state definedCSAppFrameworkException
- - if the LCM provider encounters an internal errorpublic LCStateChangeStatus setLCState(LCState targetState) throws CSAppFrameworkException
LifeCycleAware
setLCState
in interface LifeCycleAware
targetState
- The LCState
to which the registryBean is to be setLCStateChangeStatus
with possible values LCStateChangeStatus.OK
/
LCStateChangeStatus.PENDING
/
LCStateChangeStatus.FAILEDCSAppFrameworkException
- - if the LCM provider encounters an internal errorpublic void approveStateChange() throws CSAppFrameworkException
LifeCycleAware
approveStateChange
in interface LifeCycleAware
CSAppFrameworkException
- - if the LCM provider encounters an internal errorpublic void rejectStateChange() throws CSAppFrameworkException
LifeCycleAware
rejectStateChange
in interface LifeCycleAware
CSAppFrameworkException
- - if the LCM provider encounters an internal errorpublic LCModel findLCModel() throws CSAppFrameworkException
LifeCycleAware
findLCModel
in interface LifeCycleAware
LCModel
of the registryBean, null
if no LCModel foundCSAppFrameworkException
- - If the LCM provider encounters an internal errorpublic void setRegistryProvider(RegistryProvider registryProvider) throws CSAppFrameworkException
registryProvider
- The RegistryProvider
to setCSAppFrameworkException
- If the LCM provider encounters an internal errorpublic void setBeanPool(BeanPool beanPool) throws CSAppFrameworkException
beanPool
- The BeanPool
to setCSAppFrameworkException
- If the LCM provider encounters an internal errorpublic boolean equals(java.lang.Object other)
equals
in class DynamicRegistryBean
public int hashCode()
hashCode
in class DynamicRegistryBean