public class ProvisionFailureAlertBean extends Object implements AlertBean, ProcessingUnitStatusChangedEventListener, ProcessingUnitRemovedEventListener, ProcessingUnitInstanceProvisionStatusChangedEventListener
Modifier and Type | Field and Description |
---|---|
static String |
ALERT_NAME |
static String |
beanUID |
Constructor and Description |
---|
ProvisionFailureAlertBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Invoked by a bean factory after it has set all bean properties.
|
void |
destroy()
Invoked by a bean factory on destruction of a singleton.
|
Map<String,String> |
getProperties() |
void |
processingUnitInstanceProvisionStatusChanged(ProcessingUnitInstanceProvisionStatusChangedEvent event)
A callback indicating the provision status has changed.
|
void |
processingUnitRemoved(ProcessingUnit processingUnit)
A callback indicating that a Processing Unit was removed (undeployed).
|
void |
processingUnitStatusChanged(ProcessingUnitStatusChangedEvent event)
Callback indicating that a deployment status of a Processing Unit was changed.
|
void |
setAdmin(Admin admin)
Set the Admin instance to be used by this Bean.
|
void |
setProperties(Map<String,String> properties)
The bean properties supplied using a client side bean configuration object, or by plain
String key-value pairs.
|
public static final String beanUID
public static final String ALERT_NAME
public void afterPropertiesSet() throws Exception
Bean
afterPropertiesSet
in interface Bean
Exception
- in the event of misconfiguration (such as failure to set an essential
property) or if initialization fails.BeanConfigurationException
,
BeanInitializationException
public void destroy() throws Exception
Bean
destroy
in interface Bean
Exception
- in case of shutdown errors. Exceptions will get logged but not re-thrown to
allow other beans to release their resources too.BeanConfigException
public Map<String,String> getProperties()
getProperties
in interface Bean
public void setAdmin(Admin admin)
Bean
public void setProperties(Map<String,String> properties)
Bean
setProperties
in interface Bean
properties
- properties to configure this bean.public void processingUnitRemoved(ProcessingUnit processingUnit)
ProcessingUnitRemovedEventListener
processingUnitRemoved
in interface ProcessingUnitRemovedEventListener
public void processingUnitStatusChanged(ProcessingUnitStatusChangedEvent event)
ProcessingUnitStatusChangedEventListener
processingUnitStatusChanged
in interface ProcessingUnitStatusChangedEventListener
public void processingUnitInstanceProvisionStatusChanged(ProcessingUnitInstanceProvisionStatusChangedEvent event)
ProcessingUnitInstanceProvisionStatusChangedEventListener
processingUnitInstanceProvisionStatusChanged
in interface ProcessingUnitInstanceProvisionStatusChangedEventListener
Copyright © GigaSpaces.