public abstract class AbstractParentConfigurationBean<T extends AbstractConfigurationBean> extends AbstractConfigurationBean implements oracle.communication.brm.charging.appconfiguration.ParentConfigBean, java.util.Observer
Modifier and Type | Class and Description |
---|---|
class |
AbstractParentConfigurationBean.Initializer |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CLUSTER_NAME_SEPARATOR |
static int |
POF_CHILD_CONFIGURATIONS |
protected static java.lang.String |
SEPARATOR |
CONFIG_CLASS, M_BEAN_CATEGORY, NAME, POF_IMPL
Constructor and Description |
---|
AbstractParentConfigurationBean()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addChildConfiguration(java.lang.String name,
java.lang.Class childConfigurationClass)
This method adds a child configuration with using default values.
|
void |
addChildConfiguration(java.lang.String name,
java.lang.String clusterName,
java.lang.Class childConfigurationClass)
This method adds a child configuration with using default values.
|
abstract DEvolvable |
createInstance() |
java.util.List<java.lang.String> |
diameterGatewayNodeAssociatedWithCluster(java.lang.String clusterName)
Returns the List of DGW from a given site.
|
boolean |
equals(java.lang.Object o) |
AbstractConfigurationBean |
getChildConfiguration(java.lang.String name)
Returns the child configuration for given name
|
AbstractConfigurationBean |
getChildConfiguration(java.lang.String name,
java.lang.String clusterName)
Returns the child configuration for given name
|
java.util.List<oracle.communication.brm.charging.appconfiguration.ChildConfigBean> |
getChildren()
Method to fetch all contained children
|
abstract java.lang.String |
getConfigurationNode()
Returns the path to the configuration in the xml file
|
void |
giveInitializerTo(DEvolvableHelper DEvolvableHelper) |
protected void |
handlePrintConfiguration(Logger logger)
Method used by subclasses to dump their configuration settings to a log file.
|
int |
hashCode() |
void |
initialize()
Method to initialize Parent bean post construction
|
void |
removeChildConfiguration(java.lang.String name)
Removes child configuration.
|
void |
removeChildConfiguration(java.lang.String name,
java.lang.String clusterName)
Removes child configuration.
|
void |
removeChildConfigurations()
Remove all child configurations
|
void |
republishAll()
Method used to persist and synchronize all app configuration beans to charging-settings.xml.
|
void |
setChildConfigurationList(java.util.List<T> childConfigurationList)
Setter for the list of child Configurations
|
void |
update(java.util.Observable o,
java.lang.Object arg) |
broadcast, clone, getBeanId, getEvolutionData, getFilename, getImpl, getModifyingClusterName, getModifyingMemberId, printConfiguration, publish, publish, publishArrayItem, publishClearArray, publishRemoveArrayItem, registerBean, setBeanId, setEvolutionData, setFilename, setModifyingClusterName, toBinary, toString, unRegisterBean
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final int POF_CHILD_CONFIGURATIONS
protected static final java.lang.String SEPARATOR
protected static final java.lang.String CLUSTER_NAME_SEPARATOR
public AbstractParentConfigurationBean()
public void giveInitializerTo(DEvolvableHelper DEvolvableHelper)
giveInitializerTo
in class AbstractConfigurationBean
public abstract DEvolvable createInstance()
public abstract java.lang.String getConfigurationNode()
protected void handlePrintConfiguration(Logger logger)
AbstractConfigurationBean
handlePrintConfiguration
in class AbstractConfigurationBean
logger
- the logger is provided to subclassers for writing their config values.public void initialize()
oracle.communication.brm.charging.appconfiguration.ParentConfigBean
initialize
in interface oracle.communication.brm.charging.appconfiguration.ParentConfigBean
public java.util.List<oracle.communication.brm.charging.appconfiguration.ChildConfigBean> getChildren()
oracle.communication.brm.charging.appconfiguration.ParentConfigBean
getChildren
in interface oracle.communication.brm.charging.appconfiguration.ParentConfigBean
public AbstractConfigurationBean getChildConfiguration(java.lang.String name)
name
- unique identifier for a child- configurationpublic java.util.List<java.lang.String> diameterGatewayNodeAssociatedWithCluster(java.lang.String clusterName)
clusterName
- unique identifier for a child- configurationpublic AbstractConfigurationBean getChildConfiguration(java.lang.String name, java.lang.String clusterName)
name
- unique identifier for a child- configurationclusterName
- cluster namepublic void setChildConfigurationList(java.util.List<T> childConfigurationList)
childConfigurationList
- list of AbstractConfigurationBeanpublic void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void addChildConfiguration(java.lang.String name, java.lang.Class childConfigurationClass)
oracle.communication.brm.charging.appconfiguration.ParentConfigBean
addChildConfiguration
in interface oracle.communication.brm.charging.appconfiguration.ParentConfigBean
name
- of the child configurationchildConfigurationClass
- Child configuration's classpublic void addChildConfiguration(java.lang.String name, java.lang.String clusterName, java.lang.Class childConfigurationClass)
oracle.communication.brm.charging.appconfiguration.ParentConfigBean
addChildConfiguration
in interface oracle.communication.brm.charging.appconfiguration.ParentConfigBean
name
- of the child configurationchildConfigurationClass
- Child configuration's classpublic void removeChildConfiguration(java.lang.String name)
oracle.communication.brm.charging.appconfiguration.ParentConfigBean
removeChildConfiguration
in interface oracle.communication.brm.charging.appconfiguration.ParentConfigBean
name
- of the child configuration to be removed.public void removeChildConfiguration(java.lang.String name, java.lang.String clusterName)
oracle.communication.brm.charging.appconfiguration.ParentConfigBean
removeChildConfiguration
in interface oracle.communication.brm.charging.appconfiguration.ParentConfigBean
name
- of the child configuration to be removed.public void removeChildConfigurations()
oracle.communication.brm.charging.appconfiguration.ParentConfigBean
removeChildConfigurations
in interface oracle.communication.brm.charging.appconfiguration.ParentConfigBean
public boolean equals(java.lang.Object o)
equals
in class AbstractConfigurationBean
public int hashCode()
hashCode
in class AbstractConfigurationBean
public void republishAll()
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
republishAll
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean