public abstract class AbstractConfigurationBean
extends java.util.Observable
implements oracle.communication.brm.charging.appconfiguration.ConfigurationBean
Modifier and Type | Class and Description |
---|---|
class |
AbstractConfigurationBean.Initializer |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_CLASS |
protected static java.lang.String |
M_BEAN_CATEGORY |
static java.lang.String |
NAME |
static int |
POF_IMPL |
Modifier | Constructor and Description |
---|---|
protected |
AbstractConfigurationBean()
default constructor for this abstract base class; should be called by implementing derived classes.
|
Modifier and Type | Method and Description |
---|---|
protected void |
broadcast()
This method will make the ConfigurationBean changes available to others running
on the grid via the ConfigurationBeanRepository.
|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBeanId()
gets the associated id for the bean.
|
DEvolutionData |
getEvolutionData() |
java.lang.String |
getFilename()
gets the associated filename for the bean's configuration values.
|
oracle.communication.brm.charging.appconfiguration.internal.AbstractConfigurationBeanImpl |
getImpl()
used by serializer to write the impl to the pof stream
|
java.lang.String |
getModifyingClusterName()
get the name of the cluster that modified the MBean last.
|
com.tangosol.util.UID |
getModifyingMemberId()
gets the coherence MemberId for the Management Enabled Coherence Node that last modified this MBean.
|
void |
giveInitializerTo(DEvolvableHelper evolvableHelper) |
protected abstract void |
handlePrintConfiguration(Logger logger)
Method used by subclasses to dump their configuration settings to a log file.
|
int |
hashCode() |
void |
printConfiguration(Logger logger)
Method used to dump all configurations to a log file
|
protected <T> boolean |
publish(java.lang.String fieldPath,
java.lang.String fieldName,
T value)
This method is used to update multi-level attributes in the ConfigurationBean.
|
protected <T> boolean |
publish(java.lang.String fieldName,
T value)
This method is used to update a top-level attribute in the ConfigurationBean.
|
protected boolean |
publishArrayItem(java.lang.String arrayItemPath,
java.lang.Class arrayItemClass,
java.util.Map<java.lang.String,java.lang.Object> fieldNameAndValues)
This method is used to add a new item to an already existing array.
|
protected boolean |
publishClearArray(java.lang.String arrayItemPath)
This method is used to clear an array.
|
protected boolean |
publishRemoveArrayItem(java.lang.String arrayItemPath,
int index)
This method is used to remove an item from an array.
|
protected void |
registerBean(oracle.communication.brm.charging.appconfiguration.ConfigurationBean bean,
java.lang.String name)
Registers an MBean on the MBean server.
|
void |
setBeanId(java.lang.String id)
sets the associated id for the configuration bean.
|
void |
setEvolutionData(DEvolutionData data) |
void |
setFilename(java.lang.String name)
sets the associated filename for the bean's configuration values.
|
void |
setModifyingClusterName(java.lang.String modifyingClusterName)
set the name of the cluster that modified the MBean last.
|
java.lang.String |
toBinary()
Returns the binary representation of the implementing class to be compared for regression testing after rolling upgrade.
|
java.lang.String |
toString() |
protected void |
unRegisterBean(java.lang.String name)
Un-registers an MBean from the MBean server.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final int POF_IMPL
public static final java.lang.String NAME
public static final java.lang.String CONFIG_CLASS
protected static final java.lang.String M_BEAN_CATEGORY
protected AbstractConfigurationBean()
public void giveInitializerTo(DEvolvableHelper evolvableHelper)
public void setFilename(java.lang.String name)
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
setFilename
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
name
- the filenamepublic java.lang.String getFilename()
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
getFilename
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
public void setBeanId(java.lang.String id)
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
setBeanId
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
id
- the name of the bean, used to set the bean id. This will identify the bean inside
the the ConfigurationBeanRepository.public java.lang.String getBeanId()
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
getBeanId
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
public com.tangosol.util.UID getModifyingMemberId()
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
getModifyingMemberId
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
public java.lang.String getModifyingClusterName()
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
getModifyingClusterName
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
public void setModifyingClusterName(java.lang.String modifyingClusterName)
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
setModifyingClusterName
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
public void printConfiguration(Logger logger)
oracle.communication.brm.charging.appconfiguration.ConfigurationBean
printConfiguration
in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
logger
- the log where values should dumped. Subclasses should log
there configuration value using the INFO log level.protected <T> boolean publish(java.lang.String fieldName, T value)
T
- the type of the valuefieldName
- the name of the field to updatevalue
- the new value of the field.protected <T> boolean publish(java.lang.String fieldPath, java.lang.String fieldName, T value)
T
- the type of the valuefieldPath
- the indexed pathname to the configuration field that needs to be updated.fieldName
- the name of the field to updatevalue
- the new value of the field.protected boolean publishArrayItem(java.lang.String arrayItemPath, java.lang.Class arrayItemClass, java.util.Map<java.lang.String,java.lang.Object> fieldNameAndValues)
arrayItemPath
- the path to the array item that should be added to the array.arrayItemClass
- the class type of the array itemfieldNameAndValues
- the map of key/value pairs to be set in the new array item.protected boolean publishRemoveArrayItem(java.lang.String arrayItemPath, int index)
arrayItemPath
- the path to the array item that should be added to the array.index
- the index of the array item to be removedprotected boolean publishClearArray(java.lang.String arrayItemPath)
arrayItemPath
- the path to the array that should be cleared.protected void broadcast()
protected void registerBean(oracle.communication.brm.charging.appconfiguration.ConfigurationBean bean, java.lang.String name)
bean
- to registername
- to register underprotected void unRegisterBean(java.lang.String name)
name
- bean name to un- registerprotected abstract void handlePrintConfiguration(Logger logger)
logger
- the logger is provided to subclassers for writing their config values.public DEvolutionData getEvolutionData()
public void setEvolutionData(DEvolutionData data)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public oracle.communication.brm.charging.appconfiguration.internal.AbstractConfigurationBeanImpl getImpl()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toBinary() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object