|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E54416-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigBean
The interface that all Configuration Bean's should implement. A Configuration Bean can be used by local management applications and scripts to perform an Online/Offline mode configuration change.
In its first version Config Beans are envisioned only for ServiceInstanceDescriptors and not for other general Jps Configuration elements such as JpsConfiguration, ServiceProviderDescriptor, JpsContext etc. This decision was arrived at during the discussion based on the first draft of the Approach/Architecture document.
A Configuration Bean is expected to have methods at the abstraction level of the Service Domain rather than pure Property getters and setters as represented at the persistence (DAO) layer (for example : configureLDAPIdentityStoreWithLibOvd(), setCacheSize()).
Configuration Beans allow for Online and Offline access and manipulation of the configuration as opposed to pure JMX MBeans which would require a running MBean Server to perform any changes to the configuration.
A Configuration Bean is expected to have information about which changes would require a restart of the service and which pieces of information represent Mandatory properties required by the Service.
The apply() operation on a ConfigBean is expected to be propagate the configuration changes to a running ServiceInstance if the nature of changes are such that the Service Instance can refresh itself with the changed configuration. If the changes require a restart of the service instance then that would be indicated as a result of apply() call.
The operation apply() is an online operation and does not have any effect when invoked in offline mode. It may indicate the same using the returned ConfigChangeStatus object to say the changes were not applied.
Method Summary | |
---|---|
void |
addProperty(java.lang.String name, java.lang.Object value, java.lang.String description) |
java.util.concurrent.Future<ConfigChangeStatus> |
apply() Apply a local change to the Service Configuration on the ApplicationServer instance. |
void |
deleteProperty(java.lang.String name) |
ManagementConfiguration |
getConfigContext() |
java.lang.String |
getName() |
boolean |
hasChanges() |
boolean |
hasUnAppliedChanges() |
void |
modifyProperty(java.lang.String name, java.lang.Object newValue) |
java.util.concurrent.Future<ConfigChangeStatus> |
persist() Persist the changes to this ConfigBean to the persistent store. |
Method Detail |
---|
ManagementConfiguration getConfigContext()
java.lang.String getName()
java.util.concurrent.Future<ConfigChangeStatus> apply()
java.util.concurrent.Future<ConfigChangeStatus> persist()
boolean hasUnAppliedChanges()
boolean hasChanges()
void addProperty(java.lang.String name, java.lang.Object value, java.lang.String description)
name
- the name of a new configuration property to be added to the configuration of this ConfigBean. A ConfigBean holds the Management View of a particular service's instance configuration.value
- the value of the propertydescription
- a description of the property. TODO : should the value be a String or an Object. TODO : need to throw exception if the property already exists.void modifyProperty(java.lang.String name, java.lang.Object newValue)
name
- name the name of a new configuration property to be deletednewValue
- the newvalue for the property TODO: throw exception if property does not existvoid deleteProperty(java.lang.String name)
name
- of the property to be deleted from the service's instance configuration TODO : throw exception if the property does not exist.
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E54416-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |